backend

package
v0.0.0-...-b4339e2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

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

func (*Http) Disconnect

func (h *Http) Disconnect()

func (*Http) End

func (h *Http) End() error

func (*Http) Write

func (h *Http) Write(chunk []byte)

type IStreamBackend

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

func NewHttpBackend

func NewHttpBackend(w io.Writer) IStreamBackend

func NewSocketBackend

func NewSocketBackend(endpoint string) IStreamBackend

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)

Jump to

Keyboard shortcuts

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