services

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionAuthentication

func ActionAuthentication(token string) models.Action

func ActionGrantsReadAbility

func ActionGrantsReadAbility(action models.Action) bool

func ActionGrantsWriteAbility

func ActionGrantsWriteAbility(action models.Action) bool

func ActiveClientsForUser

func ActiveClientsForUser(userIID uint) []models.Client

func ActiveSessionsForClient

func ActiveSessionsForClient(clientIID, userIID uint) int64

func ClientAuthentication

func ClientAuthentication(key, secret string) models.Client

func CreateAction

func CreateAction(user models.User, client models.Client, ip, userAgent, scopes string) models.Action

func CreateNewClient

func CreateNewClient(name, description, secret, scopes, canonicalURI, redirectURI string) models.Client

func CreateSession

func CreateSession(user models.User, client models.Client, ip, userAgent, scopes, tokenType string) models.Session

func FindClientByKey

func FindClientByKey(key string) models.Client

func FindClientByUUID

func FindClientByUUID(uuid string) models.Client

func FindOrCreateClient

func FindOrCreateClient(name string) models.Client

func FindOrCreateLanguage

func FindOrCreateLanguage(name, isoCode string) models.Language

func FindSessionByToken

func FindSessionByToken(token, tokenType string) models.Session

func FindSessionByUUID

func FindSessionByUUID(uuid string) models.Session

func FindUserByAccountHolder

func FindUserByAccountHolder(holder string) models.User

func FindUserByPublicId

func FindUserByPublicId(publicId string) models.User

func FindUserByUUID

func FindUserByUUID(uuid string) models.User

func InvalidateSession

func InvalidateSession(session models.Session)

func RevokeClientAccess

func RevokeClientAccess(clientIID, userIID uint)

func SessionGrantsReadAbility

func SessionGrantsReadAbility(session models.Session) bool

func SessionGrantsWriteAbility

func SessionGrantsWriteAbility(session models.Session) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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