nonce

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseModule = fx.Provide(
	NewRepository,
)
View Source
var (
	ErrNonceNotFound = errors.New("nonce not found")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetNonceByUserID(ctx context.Context, userID string) (model.Nonce, error)
	CreateNonce(ctx context.Context, in model.Nonce) (model.Nonce, error)
	DeleteNonce(ctx context.Context, id string) (model.Nonce, error)
}

func NewRepository

func NewRepository(db *bun.DB) Repository

Jump to

Keyboard shortcuts

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