Documentation ¶ Index ¶ type Dao func New(cfgpath string) *Dao func (d *Dao) Close() func (d *Dao) Ping(c context.Context) (err error) func (d *Dao) ReadPingCount(c context.Context, t model.PingType) (pc model.PingCount, err error) func (d *Dao) UpdatePingCount(c context.Context, t model.PingType, v model.PingCount) error 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 Source Files ¶ View all Source files dao.go ping.go Click to show internal directories. Click to hide internal directories.