dao

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 12 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
	ReadPing(ctx context.Context, t string) (*m.Ping, error)
	UpdatePing(ctx context.Context, p *m.Ping) error
	//user
	CreateUser(ctx context.Context, user *m.User) error
	ReadUser(ctx context.Context, uid int64) (*m.User, error)
	UpdateUser(ctx context.Context, user *m.User) error
	DeleteUser(ctx context.Context, uid int64) error
}

Dao dao interface.

func New

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

New new Dao and return.

type Daot added in v1.11.0

type Daot = dao

Daot export dao fo ut

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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