models

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey       = errors.New("models: invalid key provided")
	ErrDeleteFailed     = errors.New("models: couldn't delete entry")
	ErrNoRecord         = errors.New("models: no record found")
	ErrConnectionFailed = errors.New("models: couldn't connect to database")
	ErrPingFailed       = errors.New("models: couldn't ping database")
	ErrInsertFailed     = errors.New("models: couldn't insert an entry to the database")
)

Functions

This section is empty.

Types

type Account

type Account struct {
	ID       any         `bson:"_id,omitempty" json:"id,omitempty"`
	Type     string      `bson:"account_type" json:"account_type"`
	RefCount json.Number `bson:"referral_count" json:"referral_count"`
	License  string      `bson:"license" json:"license"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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