Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDuplicateError ¶
IsDuplicateError checks if mongo write error is about duplicate
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis contains db and client
func (*Redis) AddTokenPair ¶
AddTokenPair adds tokenpair to redis
func (*Redis) DeleteAuth ¶
DeleteAuth removes token from redi
func (*Redis) FetchToken ¶
func (r *Redis) FetchToken(claims utils.TokenClaims) (*string, error)
FetchToken fetches authentication token
Click to show internal directories.
Click to hide internal directories.