bcommon

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Die

func Die(msg string)

Die exits unsuccessfully after giving a reson to the client

func Msg

func Msg(msg string)

Msg sends an informational message to the client

func Send

func Send(v interface{})

Send sends a JSON-encoded message to the client

Types

type ButlerDownloadStatus

type ButlerDownloadStatus struct {
	Percent int
}

type ButlerError

type ButlerError struct {
	Error string
}

type ButlerMessage

type ButlerMessage struct {
	Message string
}

type CounterWriter

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

func NewCounterWriter

func NewCounterWriter(writer io.Writer) *CounterWriter

func (*CounterWriter) Close

func (w *CounterWriter) Close() error

func (*CounterWriter) Count

func (w *CounterWriter) Count() int64

func (*CounterWriter) Write

func (w *CounterWriter) Write(buffer []byte) (int, error)

Jump to

Keyboard shortcuts

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