Documentation
¶
Index ¶
- Variables
- func Init(ctx context.Context, optFuncs ...Option) func()
- func InitConfig(opts *options)
- func InitHttpServer(ctx context.Context, handler http.Handler) func()
- func InitRpcServer(ctx context.Context, handlerRPC *api.HandlerRPC) func()
- func InitWsServer(ctx context.Context, handler http.Handler) func()
- func Launch(ctx context.Context, opts ...Option)
- type Injector
- type InjectorHTTP
- type InjectorRPC
- type InjectorWS
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var InjectorHTTPSet = wire.NewSet(wire.Struct(new(InjectorHTTP), "*"))
View Source
var InjectorRPCSet = wire.NewSet(wire.Struct(new(InjectorRPC), "*"))
View Source
var InjectorWSSet = wire.NewSet(wire.Struct(new(InjectorWS), "*"))
Functions ¶
func InitConfig ¶
func InitConfig(opts *options)
func InitRpcServer ¶
func InitRpcServer(ctx context.Context, handlerRPC *api.HandlerRPC) func()
Types ¶
type InjectorHTTP ¶
type InjectorRPC ¶
type InjectorRPC struct { HandlerRPC *api.HandlerRPC DB *gorm.DB Redis *redis.Client }
type InjectorWS ¶
Click to show internal directories.
Click to hide internal directories.