objectdb

package
v0.0.0-...-8291241 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client interface {
	CreateUser(usr *model.User) error
	UpdateUser(usr *model.User) error
	GetUserByEmail(email string) (*model.User, error)
	GetUserByUsername(username string) (*model.User, error)
	GetUserByID(userid string) (*model.User, error)
	RangeUsers(limit int, cursor string) (string, bool, []model.User, error)
	UserExistsByEmail(email string) (bool, error)
	UserExistsByUsername(username string) (bool, error)
	DelUser(userid string) error

	CreateToaster(toaster *model.Toaster) error
	UpdateToaster(toaster *model.Toaster) error
	GetUserToaster(userid, toasterid string) (*model.Toaster, error)
	ListUsertoasters(userid string) ([]*model.Toaster, error)
	CheckToasterOwnership(userid, toasterid string) (bool, error)
	DelToaster(userid, toasterid string) error

	CreateSubDomain(sub *model.SubDomain) error
	UpdateSubDomain(sub *model.SubDomain) error
	DeleteSubDomain(userid, subdomainid string) error
	GetLinkedSubDomains(toasterid string) ([]*model.SubDomain, error)
	ListUserSubdomains(userid string) ([]*model.SubDomain, error)
	CheckSubdomainOwnership(subname, userid string) (bool, error)
	GetSubDomain(userid, subdomainid string) (*model.SubDomain, error)
	UnlinkAllSubdomainsFromToaster(userid, toasterid string) error
	DeleteAllSubDomainFromUser(userid string) error

	UpsertCertificate(cert *model.Certificate) error
	GetCertificate(domain string) (*model.Certificate, error)
	DelCertificate(domain string) error

	BlockEmail(email, data string) error
	IsEmailBlocked(email string) (bool, error)

	UpsertUserStatistics(stat *model.UserStatistics) error
	IncrUserStatistics(stat *model.UserStatistics) error
	GetUserStatistics(userid, monthyear string) (*model.UserStatistics, error)
	GetAllUserStatistics(userid string) ([]*model.UserStatistics, error)
}

Functions

func Init

func Init() error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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