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: 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 struct {
	// contains filtered or unexported fields
}

Dao Dao struct.

func New

func New(cfgpath string) *Dao

New new dao and return.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) Ping

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

Ping ping the resource.

func (*Dao) ReadPing added in v1.11.0

func (d *Dao) ReadPing(ctx context.Context, t string) (*m.Ping, error)

ReadPing read ping.

func (*Dao) UpdatePing added in v1.11.0

func (d *Dao) UpdatePing(ctx context.Context, p *m.Ping) error

UpdatePing update ping.

Jump to

Keyboard shortcuts

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