Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderSet = wire.NewSet( ProvideRoute, ProvideHandler, ProvideService, ProvideRepository, wire.Bind(new(model.PermissionHandler), new(*Handler)), wire.Bind(new(model.PermissionService), new(*Service)), wire.Bind(new(model.PermissionRepository), new(*Repository)), ) )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func ProvideHandler ¶
func ProvideHandler(svc model.PermissionService, validate *validator.Validate) *Handler
type Repository ¶
type Repository struct{}
func ProvideRepository ¶
func ProvideRepository() *Repository
func (*Repository) GetRolePermissionsByID ¶
func (rpo *Repository) GetRolePermissionsByID(ctx context.Context, tx *sql.Tx, id int) *[]model.PermissionRole
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func ProvideRoute ¶
func ProvideRoute(hdl model.PermissionHandler) *Router
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(rpo model.PermissionRepository, db *sql.DB) *Service
func (*Service) GetRolePermissionsByID ¶
Click to show internal directories.
Click to hide internal directories.