up

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: 12 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 {
	UpClient upapi.UpClient
	// contains filtered or unexported fields
}

Dao is search dao.

func New

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

New new a search dao.

func (*Dao) Ping

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

Ping ping success.

func (*Dao) SetUpSwitch

func (d *Dao) SetUpSwitch(c context.Context, mid int64, state, from int, ip string) (res *upmdl.PBSetUpSwitchRes, err error)

SetUpSwitch set switch

func (*Dao) UpInfo

func (d *Dao) UpInfo(c context.Context, mid int64, from int, ip string) (res *upmdl.UpInfo, err error)

UpInfo rpc

func (*Dao) UpSpecial

func (d *Dao) UpSpecial(c context.Context, gpid int64) (ups map[int64]int64, err error)

UpSpecial 获取UP主的特殊用户组

func (*Dao) UpSpecialGroups

func (d *Dao) UpSpecialGroups(c context.Context, mid int64) (groups map[int64]*up.SpecialGroup, err error)

UpSpecialGroups 获取UP主的特殊用户组

func (*Dao) UpSwitch

func (d *Dao) UpSwitch(c context.Context, mid int64, from int, ip string) (res *upmdl.PBUpSwitch, err error)

UpSwitch get switch

Jump to

Keyboard shortcuts

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