service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheToken added in v0.3.0

func CacheToken(ctx *gin.Context, key string, token string) error

func CacheTokenExist added in v0.3.0

func CacheTokenExist(ctx *gin.Context, key string) (bool, error)

func DeleteCachedToken added in v0.3.0

func DeleteCachedToken(ctx *gin.Context, key string) (int64, error)

func GetCachedToken added in v0.3.0

func GetCachedToken(ctx *gin.Context, key string) (string, error)

func RefreshTokenTTL added in v0.3.0

func RefreshTokenTTL(ctx *gin.Context, key string)

func UserLogin

func UserLogin(ctx *gin.Context, login entity.UserLogin) (string, error)

func UserLogout added in v0.3.0

func UserLogout(c *gin.Context, token string) (int64, error)

func UserRegister

func UserRegister(ctx *gin.Context, ur entity.UserRegister) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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