json

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

Conn is a json proto connection

func NewConn

func NewConn(conn es.Conn) *Conn

NewConn create a server side connection object

func (*Conn) Close

func (c *Conn) Close()

Close close connection

func (*Conn) Recv

func (c *Conn) Recv() (map[string]interface{}, error)

Recv recv a map[string]interface{} type payload

func (*Conn) Request

func (c *Conn) Request(payload map[string]interface{}) (map[string]interface{}, error)

Request send and recv payload

func (*Conn) Send

func (c *Conn) Send(payload map[string]interface{}) error

Send send a map[string]interface{} type payload

Jump to

Keyboard shortcuts

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