Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdministratorRole = "administrator"
AdministratorRole is an administrator
Functions ¶
This section is empty.
Types ¶
type ACLService ¶
type ACLService interface {
CheckPermission(*User, Permission) error
}
ACLService regulates access control.
func NewACLService ¶
func NewACLService() ACLService
NewACLService creates an access control service
type HelloService ¶
type HelloService interface {
SayHello() string
}
HelloService provides a SayHello method
func NewHelloService ¶
func NewHelloService() HelloService
NewHelloService creates a new hello world service
type Role ¶
type Role struct { Name string Description string Permissions []Permission }
Role is a user role
type TokenService ¶
TokenService provides a token
func NewTokenService ¶
func NewTokenService() TokenService
NewTokenService creates a new UserService
Click to show internal directories.
Click to hide internal directories.