internal

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 5 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
}

func NewConn

func NewConn(c net.Conn) *Conn

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

func (c *Conn) Read(timeout time.Duration) (*Payload, error)

func (*Conn) Write

func (c *Conn) Write(payload []byte, timeout time.Duration) error

type Payload

type Payload struct {
	Labels   []string `json:"labels"`
	NodeID   uint64   `json:"nodeId"`
	ObjectID string   `json:"objectId"`
	Success  bool     `json:"success"`
}

Jump to

Keyboard shortcuts

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