Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderSet = wire.NewSet( ProvideRoute, ProvideHandler, ProvideService, ProvideRepository, wire.Bind(new(model.RoleHandler), new(*Handler)), wire.Bind(new(model.RoleService), new(*Service)), wire.Bind(new(model.RoleRepository), new(*Repository)), ) )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func ProvideHandler ¶
func ProvideHandler(svc model.RoleService, validate *validator.Validate) *Handler
type Repository ¶
type Repository struct{}
func ProvideRepository ¶
func ProvideRepository() *Repository
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func ProvideRoute ¶
func ProvideRoute(hdl model.RoleHandler) *Router
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(rpo model.RoleRepository, db *sql.DB) *Service
func (Service) GetRoleByID ¶
Click to show internal directories.
Click to hide internal directories.