view

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteApplicationTokens added in v0.31.3

func DeleteApplicationTokens(db *gorm.DB, table string, appIDs []string) error

func DeleteSessionTokens added in v0.31.3

func DeleteSessionTokens(db *gorm.DB, table, agentID, userID string) error

func DeleteToken

func DeleteToken(db *gorm.DB, table, tokenID string) error

func DeleteUserTokens added in v0.31.3

func DeleteUserTokens(db *gorm.DB, table, userID string) error

func IsTokenValid

func IsTokenValid(db *gorm.DB, table, tokenID string) (bool, error)

func PutToken

func PutToken(db *gorm.DB, table string, token *model.Token) error

func PutTokens added in v0.78.1

func PutTokens(db *gorm.DB, table string, tokens ...*model.Token) error

func TokenByID

func TokenByID(db *gorm.DB, table, tokenID string) (*model.Token, error)

func TokensByUserID added in v0.78.1

func TokensByUserID(db *gorm.DB, table, userID string) ([]*model.Token, error)

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