service

package
v0.0.0-...-63a9e4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func M

func M(data proto.Message) (res *v10.Result, err error)

func ML

func ML(dataList []proto.Message) (res *v10.Result, err error)

func PooledInvoke

func PooledInvoke(op v10.Op, modelOut interface{}, pbOut proto.Message, cb func(error, *Request)) (err error)

Types

type CmdInfo

type CmdInfo struct {
	DoFor func(*Request) error
}

type ImCircleService

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

func NewImCircleService

func NewImCircleService() *ImCircleService

func (*ImCircleService) Get

func (s *ImCircleService) Get(ctx context.Context, req *v10.GetCircleReq) (res *v10.GetCircleReply, err error)

func (*ImCircleService) List

func (s *ImCircleService) List(ctx context.Context, req *v10.ListCirclesReq) (res *v10.ListCirclesReply, err error)

func (*ImCircleService) Remove

func (s *ImCircleService) Remove(ctx context.Context, req *v10.RemoveCircleReq) (res *v10.RemoveCircleReply, err error)

func (*ImCircleService) Send

func (s *ImCircleService) Send(ctx context.Context, req *v10.SendCircleReq) (res *v10.SendCircleReply, err error)

func (*ImCircleService) Update

func (s *ImCircleService) Update(ctx context.Context, req *v10.UpdateCircleReq) (res *v10.UpdateCircleReply, err error)

func (*ImCircleService) UploadImage

func (s *ImCircleService) UploadImage(ctx context.Context, req *v10.UploadCircleReq) (res *v10.UploadCircleReply, err error)

type Pooled

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

func (*Pooled) Init

func (s *Pooled) Init()

func (*Pooled) PooledInvoke

func (s *Pooled) PooledInvoke(op v10.Op, model interface{}, res proto.Message, cb func(error, *Request)) (err error)

type Request

type Request struct {
	// op    v10.Op
	CmdInfo  *CmdInfo
	Model    interface{}
	Res      proto.Message
	Callback func(error, *Request)
}

Jump to

Keyboard shortcuts

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