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 Service

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

Service is a question service.

func New

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

New new rpc service.

func (*Service) AddPoint

func (s *Service) AddPoint(c context.Context, arg *model.ArgPoint) (status int8, err error)

AddPoint add point.

func (*Service) ConsumePoint

func (s *Service) ConsumePoint(c context.Context, arg *model.ArgPointConsume) (status int8, err error)

ConsumePoint consume point.

func (*Service) Ping

func (s *Service) Ping(c context.Context, arg *struct{}) (res *int, err error)

Ping rpc ping.

func (*Service) PointAddByBp

func (s *Service) PointAddByBp(c context.Context, arg *model.ArgPointAdd) (res *int64, err error)

PointAddByBp point add by bp.

func (*Service) PointHistory

func (s *Service) PointHistory(c context.Context, arg *model.ArgRPCPointHistory) (res *model.PointHistoryResp, err error)

PointHistory point history.

func (*Service) PointInfo

func (s *Service) PointInfo(c context.Context, arg *model.ArgRPCMid) (res *model.PointInfo, err error)

PointInfo point info.

Jump to

Keyboard shortcuts

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