Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GrpcConfig ¶
type GrpcConfig interface {
GetBindAddress() string
}
type Host ¶
type Host interface { Run() error GetConfig() HostConfig GetConfigPath() string SetConfigPath(configPath string) GetHttpRouter() *mux.Router SetHttpRouter(router *mux.Router) GetGrpcServer() *grpc.Server SetGrpcServer(server *grpc.Server) UseMiddleware(middleware MiddlewareFunc) AddModule(name string, module Module) error GetModule(name string) (Module, error) IsRunning() bool }
type HostConfig ¶
type HostConfig interface { Load(configPath string) error GetHttpConfig() HttpConfig GetGrpcConfig() GrpcConfig }
type HttpConfig ¶
type HttpConfig interface {
GetBindAddress() string
}
Click to show internal directories.
Click to hide internal directories.