dao

package
v0.0.0-...-abeac51 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbPath string

Functions

func GetDb

func GetDb() *gorm.DB

Types

type Config

type Config struct {
}

func (Config) All

func (Config) All() (r []entities.Config, e error)

func (Config) Delete

func (Config) Delete(fm entities.Config) error

func (Config) Get

func (Config) Get(key string) (value string)

func (Config) Set

func (Config) Set(key string, value string) error

type ForwardRelation

type ForwardRelation struct{}

func (ForwardRelation) Add

func (ForwardRelation) All

func (ForwardRelation) Delete

func (ForwardRelation) Delete(id int64)

func (ForwardRelation) DeleteById

func (ForwardRelation) DeleteById(id int64)

func (ForwardRelation) Find

type FwdMsg

type FwdMsg struct {
}

func (FwdMsg) All

func (FwdMsg) All() (r []entities.FwdMsg, e error)

func (FwdMsg) Delete

func (FwdMsg) Delete(fm entities.FwdMsg) error

func (FwdMsg) GetFwd

func (FwdMsg) GetFwd(fm *entities.FwdMsg) (err error)

func (FwdMsg) Insert

func (FwdMsg) Insert(fm *entities.FwdMsg) error

type Peers

type Peers struct {
}

func (Peers) All

func (Peers) All() (r []entities.Peers, e error)

func (Peers) DeleteAll

func (Peers) DeleteAll() error

DeleteAll 删除全部

func (Peers) Insert

func (Peers) Insert(fm *entities.Peers) error

type Sessions

type Sessions struct {
}

func (Sessions) All

func (Sessions) All() (r []entities.Sessions, e error)

func (Sessions) DeleteAll

func (Sessions) DeleteAll() error

func (Sessions) GetSession

func (Sessions) GetSession(s entities.Sessions) (r entities.Sessions, e error)

func (Sessions) Insert

func (Sessions) Insert(s *entities.Sessions) error

Jump to

Keyboard shortcuts

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