grequester

package module
v0.0.0-...-70cb6f2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 8 Imported by: 36

README

grequester

grpc client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoCodec

type ProtoCodec struct{}

ProtoCodec ...

func (*ProtoCodec) Marshal

func (s *ProtoCodec) Marshal(v interface{}) ([]byte, error)

Marshal ...

func (*ProtoCodec) Name

func (s *ProtoCodec) Name() string

Name ...

func (*ProtoCodec) Unmarshal

func (s *ProtoCodec) Unmarshal(data []byte, v interface{}) error

Unmarshal ...

type Requester

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

Requester ...

func NewRequester

func NewRequester(addr string, service string, method string, timeoutMs uint, poolsize int) *Requester

NewRequester ...

func (*Requester) Call

func (r *Requester) Call(req interface{}, resp interface{}) error

Call 发起请求

Jump to

Keyboard shortcuts

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