Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GRPCModule for fx. GRPCModule = fx.Options( fx.Provide(grpc.NewServer), fx.Provide(grpc.UnaryServerInterceptor), fx.Provide(grpc.StreamServerInterceptor), fx.Provide(gprometheus.NewServerMetrics), fx.Provide(gprometheus.NewClientMetrics), fx.Provide(gopentracing.NewTracer), ) // HTTPModule for fx. HTTPModule = fx.Options( fx.Provide(http.NewServer), fx.Provide(hprometheus.NewServerMetrics), fx.Provide(hprometheus.NewClientMetrics), fx.Provide(hopentracing.NewTracer), ) // NSQModule for fx. NSQModule = fx.Options( fx.Provide(nprometheus.NewProducerMetrics), fx.Provide(nprometheus.NewConsumerMetrics), fx.Provide(nopentracing.NewTracer), fx.Provide(marshaller.NewMsgPack), ) // Module for fx. Module = fx.Options( GRPCModule, HTTPModule, NSQModule, fx.Invoke(Register), ) )
Functions ¶
Types ¶
type Config ¶
type Config struct { Port string `yaml:"port"` GRPC grpc.Config `yaml:"grpc"` HTTP http.Config `yaml:"http"` NSQ nsq.Config `yaml:"nsq"` }
Config for transport.
type RegisterParams ¶ added in v1.70.0
type RegisterParams struct { fx.In Lifecycle fx.Lifecycle Shutdowner fx.Shutdowner Config *Config HTTP *http.Server GRPC *grpc.Server }
RegisterParams for transport.
Click to show internal directories.
Click to hide internal directories.