conn

package
v0.0.0-...-e3835e8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCodec

type ClientCodec struct {
	Rwc io.ReadWriteCloser
	// contains filtered or unexported fields
}

func (*ClientCodec) Close

func (c *ClientCodec) Close() error

func (*ClientCodec) ReadResponseBody

func (c *ClientCodec) ReadResponseBody(body interface{}) error

func (*ClientCodec) ReadResponseHeader

func (c *ClientCodec) ReadResponseHeader(r *rpc.Response) error

func (*ClientCodec) WriteRequest

func (c *ClientCodec) WriteRequest(r *rpc.Request, body interface{}) error

type Pool

type Pool struct {
	Addr string
	// contains filtered or unexported fields
}

func NewPool

func NewPool(addr string, maxCap int) *Pool

func (*Pool) Call

func (p *Pool) Call(serviceMethod string, args interface{},
	reply interface{}) error

func (*Pool) Close

func (p *Pool) Close() error

type Query

type Query struct {
	Data []byte
}

type Reply

type Reply struct {
	Data []byte
}

type ServerCodec

type ServerCodec struct {
	Rwc io.ReadWriteCloser
	// contains filtered or unexported fields
}

func (*ServerCodec) Close

func (c *ServerCodec) Close() error

func (*ServerCodec) ReadRequestBody

func (c *ServerCodec) ReadRequestBody(data interface{}) error

func (*ServerCodec) ReadRequestHeader

func (c *ServerCodec) ReadRequestHeader(r *rpc.Request) error

func (*ServerCodec) WriteResponse

func (c *ServerCodec) WriteResponse(resp *rpc.Response,
	data interface{}) error

Jump to

Keyboard shortcuts

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