Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpServerWireInject = wire.NewSet( repository.NewWaiterRepository, svcctx.NewGreeterServiceCtx, service.NewGreeterService, restful.NewGreeterRestfulHandler, wire.Struct(new(RestfulHandlerSet), "*"), http.NewProvider, )
View Source
var RpcServerWireInject = wire.NewSet( repository.NewWaiterRepository, svcctx.NewGreeterServiceCtx, service.NewGreeterService, rpcHandler.NewGreeterRpcServerHandler, wire.Struct(new(RpcHandlerSet), "*"), rpc.NewProvider, )
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(cfg config.Config, srv http.Provider, handlerSet *RestfulHandlerSet) *HttpServer
func (*HttpServer) Addr ¶
func (srv *HttpServer) Addr() string
func (*HttpServer) Name ¶
func (srv *HttpServer) Name() string
func (*HttpServer) Run ¶
func (srv *HttpServer) Run() error
func (*HttpServer) Shutdown ¶
func (srv *HttpServer) Shutdown() error
type RestfulHandlerSet ¶
type RestfulHandlerSet struct {
Greeter *restful.GreeterRestfulHandler
}
type RpcHandlerSet ¶
type RpcHandlerSet struct {
Greeter *rpcHandler.GreeterRpcServerHandler
}
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func NewRpcServer ¶
Click to show internal directories.
Click to hide internal directories.