dao

package
v1.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 9 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 struct {
	// contains filtered or unexported fields
}

Dao Dao.

func New

func New(cfgpath string) *Dao

New new a Dao.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping ping the resource.

func (*Dao) ReadPingCount

func (d *Dao) ReadPingCount(c context.Context, t model.PingType) (pc model.PingCount, err error)

func (*Dao) UpdatePingCount

func (d *Dao) UpdatePingCount(c context.Context, t model.PingType, v model.PingCount) error

Jump to

Keyboard shortcuts

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