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: 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 interface {
	Close()
	Ping(ctx context.Context) (err error)
	SetToken(ctx context.Context, token string, mid int64) (err error)
	GetMidByToken(ctx context.Context, token string) (mid int64, err error)
	GetTokenByMid(ctx context.Context, mid int64) (token string, 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