bio

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonOutput = false
	Quiet      = false
)

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 Marshal added in v0.7.0

func Marshal(value interface{}) ([]byte, error)

func Progress

func Progress(perc float64)

func Register added in v0.7.0

func Register()

func Unmarshal added in v0.7.0

func Unmarshal(buf []byte) (interface{}, error)

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 FileAdded added in v0.7.0

type FileAdded struct {
	Path string
	Data []byte
}

type FilePatched added in v0.7.0

type FilePatched struct {
	Path    string
	ApplyTo string
}

type FileRemoved added in v0.7.0

type FileRemoved struct {
	Path string
}

type SourceFile added in v0.7.0

type SourceFile struct {
	Path   string
	Hashes []rsync.BlockHash
}

type UploadParams added in v0.7.0

type UploadParams struct {
	GameId   int64
	Platform string
}

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