internal

package
v0.0.0-...-bb0b856 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(data []byte) error

Publish publishes the message to all the listening writers not using io.Multiwriter because it stops if one if them fails and it is sequential preferably pool the goroutines instead of creating one per writer

func PublishToServer

func PublishToServer(data []byte) error

func RunPseudoTerminal

func RunPseudoTerminal() error

func StartServer

func StartServer()

func Subscribe

func Subscribe(w io.Writer) error

Types

type SocketWriter

type SocketWriter struct {
	Lock *sync.Mutex
	Conn *websocket.Conn
}

func NewSocketWriter

func NewSocketWriter(ws *websocket.Conn) SocketWriter

func (SocketWriter) Write

func (sw SocketWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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