stream

package
v0.0.0-...-55d16bb Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	HasData chan bool
	// contains filtered or unexported fields
}

This stream struct is used as buffer to send streams to the the socket implementation (Ajax socket or Websocket)

func New

func New() *Stream

func (*Stream) Read

func (m *Stream) Read() (data string)

Read gets the data in the stream buffer

func (*Stream) Write

func (m *Stream) Write(data string)

Write appends the data string to the data stream buffer

Jump to

Keyboard shortcuts

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