dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 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 {
	AccountSumHBase *hbase.Client
	MemberService   *member.Service
	RelationService *relation.Service

	MemberDB   *sql.DB
	RelationDB *sql.DB
	PassportDB *sql.DB
	// contains filtered or unexported fields
}

Dao dao

func New

func New(c *conf.Config) *Dao

New init mysql db

func (*Dao) AsoAccountRegOrigin

func (d *Dao) AsoAccountRegOrigin(ctx context.Context, mid int64) (*model.AsoAccountRegOrigin, error)

AsoAccountRegOrigin is

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) GetByKey

func (d *Dao) GetByKey(ctx context.Context, key string) (*model.AccountSummary, error)

GetByKey is

func (*Dao) PassportProfile

func (d *Dao) PassportProfile(ctx context.Context, mid int64) (*model.PassportProfile, error)

PassportProfile is

func (*Dao) Ping

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

Ping dao ping

func (*Dao) Save

func (d *Dao) Save(ctx context.Context, key string, data map[string][]byte) error

Save is

Jump to

Keyboard shortcuts

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