mongo

package
v0.0.0-...-2563dae Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokeNotFound = errors.New("token Not Found")
)

Functions

func NewFromToken

func NewFromToken(t token.Token) tokenMongo

Types

type MongoRepository

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

func New

func New(ctx context.Context, connectionURI string, timeout int) (*MongoRepository, error)

func (*MongoRepository) Add

func (repository *MongoRepository) Add(token *token.Token) error

func (*MongoRepository) Get

func (r *MongoRepository) Get(id string) (*token.Token, error)

func (*MongoRepository) Revoke

func (repository *MongoRepository) Revoke(id string) error

Jump to

Keyboard shortcuts

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