backend

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

type Socket struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Socket) Disconnect

func (s *Socket) Disconnect()

func (*Socket) End

func (s *Socket) End() error

func (*Socket) Write

func (s *Socket) Write(chunk []byte)

type StreamBackend

type StreamBackend interface {
	Disconnect()
	Write([]byte)
	End() error
}

func NewSocketBackend

func NewSocketBackend(endpoint string) StreamBackend

Jump to

Keyboard shortcuts

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