Documentation ¶
Index ¶
- func ActionAuthentication(token string) models.Action
- func ActionGrantsReadAbility(action models.Action) bool
- func ActionGrantsWriteAbility(action models.Action) bool
- func ActiveClientsForUser(userIID uint) []models.Client
- func ActiveSessionsForClient(clientIID, userIID uint) int64
- func ClientAuthentication(key, secret string) models.Client
- func CreateAction(user models.User, client models.Client, ip, userAgent, scopes string) models.Action
- func CreateNewClient(name, description, secret, scopes, redirectURI string) models.Client
- func CreateSession(user models.User, client models.Client, ...) models.Session
- func FindClientByKey(key string) models.Client
- func FindClientByUUID(uuid string) models.Client
- func FindOrCreateClient(name string) models.Client
- func FindOrCreateLanguage(name, isoCode string) models.Language
- func FindSessionByToken(token, tokenType string) models.Session
- func FindSessionByUUID(uuid string) models.Session
- func FindUserByAccountHolder(holder string) models.User
- func FindUserByPublicId(publicId string) models.User
- func FindUserByUUID(uuid string) models.User
- func InvalidateSession(session models.Session)
- func RevokeClientAccess(clientIID, userIID uint)
- func SessionGrantsReadAbility(session models.Session) bool
- func SessionGrantsWriteAbility(session models.Session) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionAuthentication ¶
func ActionGrantsReadAbility ¶
func ActiveClientsForUser ¶
func ActiveSessionsForClient ¶
func ClientAuthentication ¶
func CreateAction ¶
func CreateNewClient ¶
func CreateSession ¶
func FindClientByKey ¶
func FindClientByUUID ¶
func FindOrCreateClient ¶
func FindOrCreateLanguage ¶
func FindSessionByToken ¶
func FindSessionByUUID ¶
func FindUserByAccountHolder ¶
func FindUserByPublicId ¶
func FindUserByUUID ¶
func InvalidateSession ¶
func RevokeClientAccess ¶
func RevokeClientAccess(clientIID, userIID uint)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.