bson

package
v0.0.0-...-d65df50 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BsonProtocol

type BsonProtocol struct {
}

func (BsonProtocol) ReadMessage

func (p BsonProtocol) ReadMessage(msg transport.Message) (ret interface{}, err error)

ReadMessage accepts a transport message, and according to its type, tries to deserialize it into a request or response object

func (BsonProtocol) WriteMessage

func (BsonProtocol) WriteMessage(v interface{}) (msg transport.Message, err error)

WriteMessage takes a request or response object and serializes it into a transport message to be sent to a transport

Jump to

Keyboard shortcuts

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