Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultWait ¶
func DefaultWait()
Types ¶
type Api ¶
type Api struct { // dependencies interfaces.WithConfigPath // contains filtered or unexported fields }
func (*Api) GetGinEngine ¶
func (*Api) GetHttpServer ¶
type Docker ¶
type Docker struct { // dependencies interfaces.WithConfigPath // contains filtered or unexported fields }
func GetDocker ¶
func GetDocker(opts ...DockerOption) *Docker
func NewDocker ¶
func NewDocker(opts ...DockerOption) *Docker
type DockerOption ¶
type DockerOption func(dck DockerApp)
func WithDockerParent ¶
func WithDockerParent(parent ServerApp) DockerOption
type NodeApp ¶
type NodeApp interface { App interfaces.WithConfigPath SetGrpcAddress(address interfaces.Address) }
type Server ¶
type Server struct { // dependencies interfaces.WithConfigPath // contains filtered or unexported fields }
func (*Server) GetNodeService ¶
func (app *Server) GetNodeService() (svc interfaces.NodeService)
func (*Server) SetGrpcAddress ¶
func (app *Server) SetGrpcAddress(address interfaces.Address)
type ServerApp ¶
type ServerApp interface { NodeApp GetApi() (api *Api) GetNodeService() (masterSvc interfaces.NodeService) }
func GetServer ¶
func GetServer(opts ...ServerOption) ServerApp
func NewServer ¶
func NewServer(opts ...ServerOption) (app ServerApp)
type ServerOption ¶
type ServerOption func(app ServerApp)
func WithServerConfigPath ¶
func WithServerConfigPath(path string) ServerOption
func WithServerGrpcAddress ¶
func WithServerGrpcAddress(address interfaces.Address) ServerOption
Click to show internal directories.
Click to hide internal directories.