Documentation ¶
Index ¶
- func MakeCreateEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, ...) http.HandlerFunc
- func MakeDeleteEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, ...) http.HandlerFunc
- func MakeGetEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, ...) http.HandlerFunc
- func MakeSetEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, ...) http.HandlerFunc
- type Complete
- type Identifier
- type Incomplete
- type Manager
- type Provider
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCreateEndpoint ¶
func MakeCreateEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, rb rbac.Control) http.HandlerFunc
MakeCreateEndpoint for the role service
func MakeDeleteEndpoint ¶
func MakeDeleteEndpoint(l *zap.Logger, m Manager, e encode.Encoder, pubKey rsa.PublicKey, rb rbac.Control) http.HandlerFunc
MakeDeleteEndpoint for the role service
Types ¶
type Incomplete ¶
type Incomplete interface {
Data() *data
}
Incomplete role object
func NewIncomplete ¶
func NewIncomplete(title, description string, rules rbac.RoleRules) Incomplete
NewIncomplete creates a new incomplete role object
type Manager ¶
type Manager interface { Get(context.Context, Identifier) (Complete, error) Set(context.Context, Complete) error Create(context.Context, Complete) error Delete(context.Context, Identifier) error }
Manager for managing role informations
func NewManager ¶
func NewManager(repo Repository, rb rbac.Control) Manager
NewManager creates a new instance of a manager for role information
Click to show internal directories.
Click to hide internal directories.