Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserResourceWireSet = wire.NewSet( NewUserResourceRouterImpl, wire.Bind(new(Router), new(*RouterImpl)), NewUserResourceRestHandler, wire.Bind(new(RestHandler), new(*RestHandlerImpl)), userResource.NewUserResourceExtendedServiceImpl, wire.Bind(new(userResource.UserResourceService), new(*userResource.UserResourceExtendedServiceImpl)), )
View Source
var UserResourceWireSetEA = wire.NewSet( NewUserResourceRouterImpl, wire.Bind(new(Router), new(*RouterImpl)), NewUserResourceRestHandler, wire.Bind(new(RestHandler), new(*RestHandlerImpl)), userResource.NewUserResourceServiceImpl, wire.Bind(new(userResource.UserResourceService), new(*userResource.UserResourceServiceImpl)), )
Functions ¶
This section is empty.
Types ¶
type RestHandler ¶
type RestHandler interface {
GetResourceOptions(w http.ResponseWriter, r *http.Request)
}
type RestHandlerImpl ¶
type RestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewUserResourceRestHandler ¶
func NewUserResourceRestHandler(logger *zap.SugaredLogger, userService user.UserService, userResourceService userResource.UserResourceService) *RestHandlerImpl
func (*RestHandlerImpl) GetResourceOptions ¶
func (handler *RestHandlerImpl) GetResourceOptions(w http.ResponseWriter, r *http.Request)
type RouterImpl ¶
type RouterImpl struct {
// contains filtered or unexported fields
}
func NewUserResourceRouterImpl ¶
func NewUserResourceRouterImpl(restHandler RestHandler) *RouterImpl
func (*RouterImpl) InitUserResourceRouter ¶
func (router *RouterImpl) InitUserResourceRouter(userResourceRouter *mux.Router)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.