Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface {
GetAllRole()
GetAllResource()
GetAllDomain()
Authorize(user, domain, resource string) (bool, error)
CheckUser(username, password string) (*User, error)
CreateToken(user *User) (string, error)
}
Service is the auth service
func NewService ¶
func NewService(authRepo Repository, ra *redisadapter.Adapter) (Service, error)
NewService creates new auth service
Click to show internal directories.
Click to hide internal directories.