account

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: 8 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 is account dao.

func New

func New(c *conf.Config) (d *Dao)

New new a account dao.

func (*Dao) Close

func (d *Dao) Close()

Close close resource.

func (*Dao) GetCachedInfos

func (d *Dao) GetCachedInfos(c context.Context, mids []int64, ip string) (infos map[int64]*account.Info, err error)

GetCachedInfos get cache info

func (*Dao) IdentifyInfo

func (d *Dao) IdentifyInfo(c context.Context, ak, ck, ip string, mid int64) (err error)

IdentifyInfo 获取用户实名认证状态

func (*Dao) Infos

func (d *Dao) Infos(c context.Context, mids []int64, ip string) (infos map[int64]*account.Info, err error)

Infos get up infos

func (*Dao) Ping

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

Ping ping success.

func (*Dao) Profile

func (d *Dao) Profile(c context.Context, mid int64, ip string) (p *account.Profile, err error)

Profile get profile from rpc

Jump to

Keyboard shortcuts

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