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 resource rpc client.

func New

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

New new a resource rpc client.

func (*Service) Archive

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

Archive get the aid auth.

func (*Service) Archive2

func (s *Service) Archive2(c context.Context, arg *model.Archive) (res *model.Auth, err error)

Archive2 get the aid auth.

func (*Service) AuthPIDs

func (s *Service) AuthPIDs(c context.Context, arg *model.ArgPids) (res map[int64]*model.Auth, err error)

AuthPIDs check if ip in pids.

func (*Service) Group

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

Group get the gip auth.

func (*Service) Info

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

Info get the ip info.

func (*Service) InfoComplete

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

InfoComplete get the whold ip info.

func (*Service) Infos

func (s *Service) Infos(c context.Context, arg []string) (res map[string]*model.Info, err error)

Infos get the ips info.

func (*Service) InfosComplete

func (s *Service) InfosComplete(c context.Context, arg []string) (res map[string]*model.InfoComplete, err error)

InfosComplete get the whold ips infos.

Jump to

Keyboard shortcuts

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