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

func New

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

New create instance of service and return.

func (*Service) Add

func (s *Service) Add(c context.Context, arg *model.ArgHistory) (err error)

Add add history .

func (*Service) Clear

func (s *Service) Clear(c context.Context, arg *model.ArgClear) (err error)

Clear clear history

func (*Service) Delete

func (s *Service) Delete(c context.Context, arg *model.ArgDelete) (err error)

Delete add history .

func (*Service) History

func (s *Service) History(c context.Context, arg *model.ArgHistories) (res []*model.Resource, err error)

History return all histories .

func (*Service) HistoryCursor

func (s *Service) HistoryCursor(c context.Context, arg *model.ArgCursor) (res []*model.Resource, err error)

HistoryCursor return all histories .

func (*Service) Position

func (s *Service) Position(c context.Context, arg *model.ArgPos) (res *model.History, err error)

Position return map[mid]*history.

func (*Service) Progress

func (s *Service) Progress(c context.Context, arg *model.ArgPro) (res map[int64]*model.History, err error)

Progress return map[mid]*history.

Jump to

Keyboard shortcuts

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