out

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

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

Socket is a Frame Streams encoder over a UNIX socket.

func NewSocket

func NewSocket(path string) (s *Socket, err error)

NewSocket will always return a new Socket. err if nothing is listening to it, it will attempt to reconnect on the next Write.

func (*Socket) Close

func (s *Socket) Close() error

Close the socket and flush the remaining frames.

func (*Socket) Write

func (s *Socket) Write(frame []byte) (int, error)

Write a single Frame Streams frame.

type TCP

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

TCP is a Frame Streams encoder over TCP.

func NewTCP

func NewTCP(address string) *TCP

NewTCP returns a TCP writer.

func (*TCP) Close

func (s *TCP) Close() error

Close is an alias to Flush to satisfy io.WriteCloser similarly to type Socket.

func (*TCP) Flush

func (s *TCP) Flush() error

Flush the remaining frames.

func (*TCP) Write

func (s *TCP) Write(frame []byte) (n int, err error)

Write a single Frame Streams frame.

Jump to

Keyboard shortcuts

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