bio

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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 Dief

func Dief(format string, args ...interface{})

func Log

func Log(msg string)

Msg sends an informational message to the client

func Logf

func Logf(format string, args ...interface{})

func Progress

func Progress(perc float64)

Types

type CounterWriter

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

func Counter

func Counter(writer io.Writer) *CounterWriter

func ProgressCounter

func ProgressCounter(onWrite WriteCallback, 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) (n int, err error)

type WriteCallback

type WriteCallback func(count int64)

Jump to

Keyboard shortcuts

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