cache

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(url string) (*redis.Client, error)

NewRedisClient creates a new redis client from the given url

Types

type TokeRepositoryImplV1

type TokeRepositoryImplV1 struct {
	// contains filtered or unexported fields
}

func NewTokenRepositoryV1

func NewTokenRepositoryV1(client *redis.Client) (*TokeRepositoryImplV1, error)

NewTokenRepositoryV1 creates a new token repository

func (*TokeRepositoryImplV1) GetTokenPayload

func (tr *TokeRepositoryImplV1) GetTokenPayload(ctx context.Context, accessToken string) (*core.TokenPayload, error)

GetTokenPayload gets the token payload from cache

Jump to

Keyboard shortcuts

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