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: 0

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