log

package
v0.0.0-...-1364d92 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetRedundancy = iota
	GetTime       = iota
	GetTimeLeader = iota
	GetTraffic    = iota
	GetTimeCDF    = iota
	GetLeaderCDF  = iota
	GetLogged     = iota
	Stop          = iota
)

Variables

This section is empty.

Functions

func HasLogfile

func HasLogfile() bool

func LogCompleted

func LogCompleted(t Completed)

func LogLeader

func LogLeader(t Leader)

func LogPacket

func LogPacket(t Packet)

func LogTransfer

func LogTransfer(t Transfer)

func Println

func Println(v ...interface{})

func Query

func Query(q int)

func SetLogfile

func SetLogfile(logfile string)

func SetVerbose

func SetVerbose(verbose bool)

func Wait

func Wait()

Defaults

Types

type Completed

type Completed struct {
	Id   string
	Time int
}

type Leader

type Leader struct {
	Id string
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var Log *Logger = NewLogger()

func NewLogger

func NewLogger() *Logger

func (*Logger) HasLogfile

func (l *Logger) HasLogfile() bool

func (*Logger) LogCompleted

func (l *Logger) LogCompleted(t Completed)

func (*Logger) LogLeader

func (l *Logger) LogLeader(t Leader)

func (*Logger) LogPacket

func (l *Logger) LogPacket(t Packet)

func (*Logger) LogTransfer

func (l *Logger) LogTransfer(t Transfer)

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

func (*Logger) Query

func (l *Logger) Query(q int)

func (*Logger) SetLogfile

func (l *Logger) SetLogfile(logfile string)

func (*Logger) SetVerbose

func (l *Logger) SetVerbose(verbose bool)

func (*Logger) Wait

func (l *Logger) Wait()

Interface.

type Packet

type Packet struct {
	Src  string `json:"src"`
	Dst  string `json:"dst"`
	Type string `json:"type"`
}

type Transfer

type Transfer struct {
	From string
	To   string

	Index int
}

Jump to

Keyboard shortcuts

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