dao

package
v0.0.0-...-fc3792f Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 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)
	GetInfo(ctx context.Context, mid int64) (r *api.Info, err error)
	GetProfile(ctx context.Context, mid int64) (r *api.Profile, err error)
	GetPassword(ctx context.Context, mid int64) (password string, err error)
	AddInfo(ctx context.Context, mid int64, name, password string) (err error)
	SetInfo(ctx context.Context, mid int64, field, value string) (err error)
	SetName(ctx context.Context, name string, mid int64) (err error)
	GetMidByName(ctx context.Context, name string) (mid int64, err error)
}

Dao dao interface

func New

func New() Dao

New new a dao and return.

Jump to

Keyboard shortcuts

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