Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewGRPCServer, NewHTTPServer, NewEventHandler, )
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer( logger log.Logger, tp *tracesdk.TracerProvider, bc *conf.Bootstrap, greeter *application.GreeterAppService, ) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer( logger log.Logger, tp *tracesdk.TracerProvider, bc *conf.Bootstrap, greeter *application.GreeterAppService, ) *http.Server
NewHTTPServer new an HTTP server.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler( logger log.Logger, bus event.EventBus, gretAppSvc *application.GreeterAppService, ) *EventHandler
func (*EventHandler) Initialize ¶
func (h *EventHandler) Initialize() error
Click to show internal directories.
Click to hide internal directories.