token

package
v0.0.0-...-2f69930 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*database.Database `json:"-" bson:"-" map:"-"`
}

func NewModel

func NewModel(mgo mongodb.Mongoer) *Model

func (*Model) CountDocumentsByID

func (self *Model) CountDocumentsByID(jwtID primitive.ObjectID) (int64, error)

func (*Model) CountDocumentsByIDAndToken

func (self *Model) CountDocumentsByIDAndToken(jwtID primitive.ObjectID, token string) (int64, error)

func (*Model) CountDocumentsByUserIDAndType

func (self *Model) CountDocumentsByUserIDAndType(userID primitive.ObjectID, typ string) (int64, error)

func (*Model) FilterByType

func (self *Model) FilterByType(typ string) bson.D

func (*Model) FilterByUserID

func (self *Model) FilterByUserID(userID primitive.ObjectID) bson.D

Jump to

Keyboard shortcuts

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