dao

package
v0.0.0-...-bd22ede Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	UserIdentify identify.IdentifyModel
	UserToken    userToken.UserTokenModel
	// contains filtered or unexported fields
}

func New

func New(c config.Config) *Dao

func (*Dao) GetPrivateKey

func (d *Dao) GetPrivateKey() string

func (*Dao) GetPublicKey

func (d *Dao) GetPublicKey() string

func (*Dao) IsReplayAttack

func (d *Dao) IsReplayAttack(ctx context.Context, username, pwd string) (bool, error)

func (*Dao) SetReplayAttack

func (d *Dao) SetReplayAttack(ctx context.Context, username, pwd string, expire int) error

Jump to

Keyboard shortcuts

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