database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database []model.Sync

func (*Database) Find

func (d *Database) Find() (Database, error)

func (*Database) FindByIdAndDelete

func (d *Database) FindByIdAndDelete(Id string)

func (*Database) FindByIdAndUpdate

func (d *Database) FindByIdAndUpdate(Id string, sync model.Sync)

func (*Database) InsertOne

func (d *Database) InsertOne(sync model.Sync) error

func (*Database) Load

func (d *Database) Load() error

func (*Database) Store

func (d *Database) Store(database Database)

type Histories

type Histories []model.History

func (*Histories) Find

func (h *Histories) Find() Histories

func (*Histories) FindByIdAndUpdate

func (h *Histories) FindByIdAndUpdate(Id string, history model.History)

func (*Histories) Load

func (h *Histories) Load() error

func (*Histories) Save

func (h *Histories) Save(history model.History)

func (*Histories) Store

func (h *Histories) Store(histories Histories)

type User

type User model.User

func (*User) GetToken

func (u *User) GetToken() string

func (*User) Load

func (u *User) Load() error

func (*User) Save

func (u *User) Save(user User) error

func (*User) SaveToken

func (u *User) SaveToken(token string)

Jump to

Keyboard shortcuts

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