services

package
v0.0.0-...-4948c15 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKey

func CheckKey(client redis.Conn, key string) (exists bool, err error)

CheckKey - Check if key exists

func GetToken

func GetToken(client redis.Conn, key string) (*types.ZeitToken, error)

GetToken - Get ZeitToken from Key

func SetFullToken

func SetFullToken(conn redis.Conn, key string, token *types.ZeitToken) (err error)

SetFullToken - Save a ZeitToken under the key to Redis

func UpdateToken

func UpdateToken(conn redis.Conn, key string, attr string, val string) (err error)

UpdateToken - Update one attribute of a ZeitToken in Redis

func UpdateTokenMany

func UpdateTokenMany(conn redis.Conn, key string, token *types.ZeitToken) (err error)

UpdateTokenMany - Update many attributes of a ZeitToken in Redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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