gorpc

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 struct info.

func New

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

New new service instance and return.

func (*Service) AddCallback

func (s *Service) AddCallback(c context.Context, arg *model.ArgCallback) (err error)

AddCallback adds callback data.

func (*Service) AddMidProgress

func (s *Service) AddMidProgress(c context.Context, arg *model.ArgMidProgress) (err error)

AddMidProgress adds mid count number to task's progress field

func (*Service) AddReport

func (s *Service) AddReport(c context.Context, arg *model.ArgReport) (err error)

AddReport adds report.

func (*Service) AddReportCache

func (s *Service) AddReportCache(c context.Context, arg *model.ArgReport) (err error)

AddReportCache adds report.

func (*Service) AddTokenCache

func (s *Service) AddTokenCache(ctx context.Context, arg *model.ArgReport) (err error)

AddTokenCache add token cache

func (*Service) AddTokensCache

func (s *Service) AddTokensCache(ctx context.Context, arg *model.ArgReports) (err error)

AddTokensCache add tokens cache

func (*Service) AddUserReportCache

func (s *Service) AddUserReportCache(c context.Context, arg *model.ArgUserReports) (err error)

AddUserReportCache adds user report cache.

func (*Service) DelInvalidReports

func (s *Service) DelInvalidReports(c context.Context, arg *model.ArgDelInvalidReport) (err error)

DelInvalidReports deletes invalid reports.

func (*Service) DelReport

func (s *Service) DelReport(c context.Context, arg *model.ArgReport) (err error)

DelReport deletes report.

func (*Service) SetSetting

func (s *Service) SetSetting(c context.Context, arg *model.ArgSetting) (err error)

SetSetting sets user push switch setting.

func (*Service) Setting

func (s *Service) Setting(c context.Context, arg *model.ArgMid) (res map[int]int, err error)

Setting gets user push switch setting.

Jump to

Keyboard shortcuts

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