permission

package
v0.0.0-...-418667d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func Wire

func Wire(validate *validator.Validate, db *sql.DB) *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

func (svc *Service) GetRolePermissionsByID(ctx context.Context, id int) []model.PermissionRoleResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL