client

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

type RPC interface {
	// DEPRECATED: Please use gRPC service of func UpGroupMids instead, but must get datas in many times by one time of max 1000.
	Special(c context.Context, arg *model.ArgSpecial) (res []*model.UpSpecial, err error)
	// DEPRECATED: Please use gRPC service of func UpAttr instead.
	Info(c context.Context, arg *model.ArgInfo) (res *model.UpInfo, err error)
}

RPC rpc

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service rpc client

func New

func New(c *rpc.ClientConfig) (s *Service)

New create

func (*Service) Info

func (s *Service) Info(c context.Context, arg *model.ArgInfo) (res *model.UpInfo, err error)

Info info DEPRECATED: Please use gRPC service of func UpAttr instead.

func (*Service) SetUpSwitch

func (s *Service) SetUpSwitch(c context.Context, arg *model.ArgUpSwitch) (res *model.PBSetUpSwitchRes, err error)

SetUpSwitch set up switch DEPRECATED: Please use gRPC service func SetUpSwitch instead.

func (*Service) Special

func (s *Service) Special(c context.Context, arg *model.ArgSpecial) (res []*model.UpSpecial, err error)

Special special DEPRECATED: Please use gRPC service of func UpGroupMids instead, but must get datas in many times by one time of max 1000.

func (*Service) UpStatBase

func (s *Service) UpStatBase(c context.Context, arg *model.ArgMidWithDate) (res *model.UpBaseStat, err error)

UpStatBase base statis DEPRECATED: Please use gRPC service func UpBaseStats instead.

func (*Service) UpSwitch

func (s *Service) UpSwitch(c context.Context, arg *model.ArgUpSwitch) (res *model.PBUpSwitch, err error)

UpSwitch get up switch DEPRECATED: Please use gRPC service func UpSwitch instead.

Jump to

Keyboard shortcuts

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