mongodb

package
v0.0.0-...-dc4a31d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*mgo.Database
}

func (*Storage) DeleteRefreshToken

func (s *Storage) DeleteRefreshToken(token string) error

func (*Storage) GetByUsernameAndPassword

func (s *Storage) GetByUsernameAndPassword(username, password string) (model.User, error)

func (*Storage) GetRefreshToken

func (s *Storage) GetRefreshToken(token string) (model.RefreshToken, error)

func (*Storage) Ping

func (s *Storage) Ping() error

func (*Storage) StoreRefreshToken

func (s *Storage) StoreRefreshToken(token model.RefreshToken) error

Jump to

Keyboard shortcuts

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