Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerGraphSet = wire.NewSet( configs.ConfigGraphSet, NewHttpServer, )
View Source
var SuperGraphSet = wire.NewSet(provider.MysqlGraphSet, services.ServiceGraphSet, handler.HandlerGraphSet, ServerGraphSet)
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func BuildServer ¶
func BuildServer() (*HttpServer, error)
func NewHttpServer ¶
func NewHttpServer( configs *configs.ServerConfiguration, prodHandler *handler.ProductCtlHandler, orderHandler *handler.OrderCtlHandler, ) *HttpServer
func (*HttpServer) RegisterHandler ¶
func (h *HttpServer) RegisterHandler(path string, handler http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.