mongo

package
v0.0.0-...-264fe26 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 MongoStore

type MongoStore struct {
	Collection  *mongo.Collection
	Logger      logr.Logger
	CtxReqIDKey interface{}
}

func (*MongoStore) DecreaseAttemptAndLoadLatest

func (ms *MongoStore) DecreaseAttemptAndLoadLatest(ctx context.Context, ownerID string) (*token.CodeToken, error)

func (*MongoStore) Save

func (ms *MongoStore) Save(ctx context.Context, token *token.CodeToken) error

Jump to

Keyboard shortcuts

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