database

package
v0.0.0-...-1954100 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DATABASE_NAME = "NSCMTelegramBot"

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func New

func New(uri string) *Database

func (*Database) GetAllUsers

func (db *Database) GetAllUsers() ([]models.User, error)

func (*Database) GetResults

func (db *Database) GetResults(UserID int64) (models.Results, error)

func (*Database) RegisterUser

func (db *Database) RegisterUser(user models.User) error

func (*Database) ReplaceResults

func (db *Database) ReplaceResults(results models.Results) error

func (*Database) UnregisterUser

func (db *Database) UnregisterUser(UserID int64) error

Jump to

Keyboard shortcuts

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