Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("server", sfx.SecuritySettingsModule, sfx.SettingsModule, sfx.ConnectionMuxModule, sfx.OTelModule, )
Module is the module for the server.
Functions ¶
This section is empty.
Types ¶
type BinderFunc ¶ added in v1.0.0
type BinderFunc func(*zap.Logger) ([]LifecycleHook, error)
type LifecycleHook ¶ added in v1.0.0
type ServiceBinder ¶ added in v1.0.0
type ServiceBinder struct { fx.In mfx.AppParams // app settings params sfx.SettingsParams // server settings sfx.SecuritySettingsParams // server security settings sfx.ConnectionMuxParams // connection mux params sfx.GrpcServiceParams //all grpc service injected (grpc) sfx.ZinxServiceParams // all zinx service injected (tcp/udp/websocket) sfx.GatewayServiceParams // all gateway service injected (http) sfx.AuthMiddlewareParams // grpc rpc auth middleware injected sfx.OTelProviderParams // opentelemetry provider injected }
ServiceBinder bind all register services to the server Service types: grpc, zinx, gateway and opentelemetry provider
Click to show internal directories.
Click to hide internal directories.