dao

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao interface {
	Close()

	Ping(ctx context.Context) (err error)
	//count
	UpdatePingCount(c context.Context, t PingType, v PingCount) error
	ReadPingCount(c context.Context, t PingType) (PingCount, error)
	//user-cc
	ExistUserCC(c context.Context, uid int64) (bool, error)
	SetUserCC(c context.Context, user *User) error
	GetUserCC(c context.Context, uid int64) (User, error)
	DelUserCC(c context.Context, uid int64) error
	//user-db
	CreateUserDB(c context.Context, user *User) error
	UpdateUserDB(c context.Context, user *User) error
	ReadUserDB(c context.Context, uid int64) (User, error)
	DeleteUserDB(c context.Context, uid int64) error
	//user
	CreateUser(c context.Context, user *User) error
	UpdateUser(c context.Context, user *User) error
	ReadUser(c context.Context, uid int64) (User, error)
	DeleteUser(c context.Context, uid int64) error
}

Dao dao interface

func New

func New(cfgpath string) (Dao, func(), error)

New new a dao.

Jump to

Keyboard shortcuts

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