codec

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MPL-2.0 Imports: 3 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InmemCodec

type InmemCodec struct {
	Method string
	Args   interface{}
	Reply  interface{}
	Err    error
}

InmemCodec is used to do an RPC call without going over a network

func (*InmemCodec) Close

func (i *InmemCodec) Close() error

func (*InmemCodec) ReadRequestBody

func (i *InmemCodec) ReadRequestBody(args interface{}) error

func (*InmemCodec) ReadRequestHeader

func (i *InmemCodec) ReadRequestHeader(req *rpc.Request) error

func (*InmemCodec) WriteResponse

func (i *InmemCodec) WriteResponse(resp *rpc.Response, reply interface{}) error

Jump to

Keyboard shortcuts

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