role

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: 9 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.RoleService, validate *validator.Validate) *Handler

type Repository

type Repository struct{}

func ProvideRepository

func ProvideRepository() *Repository

func (*Repository) GetRoleByID

func (rpo *Repository) GetRoleByID(ctx context.Context, tx *sql.Tx, id string) (*model.Role, error)

type Router

type Router struct {
	// contains filtered or unexported fields
}

func ProvideRoute

func ProvideRoute(hdl model.RoleHandler) *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.RoleRepository, db *sql.DB) *Service

func (Service) GetRoleByID

func (svc Service) GetRoleByID(ctx context.Context, id string) model.RoleResponse

Jump to

Keyboard shortcuts

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