rpcenc

package
v0.0.0-...-9c05d5a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesEncoding

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

func NewAesEncoding

func NewAesEncoding(enc rpc.Encoding, key []byte) (*AesEncoding, error)

func (*AesEncoding) Decode

func (mp *AesEncoding) Decode(r *bytes.Reader, v interface{}) error

func (*AesEncoding) Encode

func (mp *AesEncoding) Encode(w rpc.BufferWriter, v interface{}) error

type JSONEncoding

type JSONEncoding struct{}

func NewJSONEncoding

func NewJSONEncoding() *JSONEncoding

func (*JSONEncoding) Decode

func (mp *JSONEncoding) Decode(r *bytes.Reader, v interface{}) error

func (*JSONEncoding) Encode

func (mp *JSONEncoding) Encode(w rpc.BufferWriter, v interface{}) error

type MsgPackEncoding

type MsgPackEncoding struct{}

func NewMsgPackEncoding

func NewMsgPackEncoding() *MsgPackEncoding

func (*MsgPackEncoding) Decode

func (mp *MsgPackEncoding) Decode(r rpc.BufferReader, v interface{}) error

func (*MsgPackEncoding) Encode

func (mp *MsgPackEncoding) Encode(w rpc.BufferWriter, v interface{}) error

Jump to

Keyboard shortcuts

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