service

package
v0.0.0-...-3ae0001 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

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

func NewConfigService

func NewConfigService(cc *client.ConfigClient) *ConfigService

func (*ConfigService) UpdateFacerecConfig

func (cs *ConfigService) UpdateFacerecConfig(frCfg model.FacerecConfig) error

type CryptoService

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

func NewCryptoService

func NewCryptoService(ac *client.AuthClient) *CryptoService

func (*CryptoService) Decrypt

func (cs *CryptoService) Decrypt(userID uint, ciphertext []byte) ([]byte, error)

func (*CryptoService) Encrypt

func (cs *CryptoService) Encrypt(userID uint, opentext []byte) ([]byte, error)

type TokenService

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

func NewTokenService

func NewTokenService(cfg config.Config, ac *client.AuthClient) *TokenService

func (*TokenService) ExtractPayload

func (t *TokenService) ExtractPayload(token string) (model.Payload, error)

func (*TokenService) NextToken

func (t *TokenService) NextToken(token string) (string, error)

Jump to

Keyboard shortcuts

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