Versions in this module Expand all Collapse all v1 v1.1.0 Mar 28, 2018 Changes in this version + const DefaultFeatureDir + const DefaultPort + const DefaultStateDir + var PacketCompressionDict = []byte("{\"ip_addr\":\",\"time_ns\":,\"names\":[\",\"],\"features\":{\":true,\"}}}") + func GuessAddr() string + func HandleSignals(cancel context.CancelFunc) + func Serve(ctx context.Context, p *Params) (err error) + type Log struct + DebugLogger Logger + ErrorLogger Logger + InfoLogger Logger + func (l *Log) Debug(args ...interface{}) + func (l *Log) Debugf(fmt string, args ...interface{}) + func (l *Log) DefaultInit(network, addr, tag string, debug bool) (err error) + func (l *Log) Error(args ...interface{}) + func (l *Log) Errorf(fmt string, args ...interface{}) + func (l *Log) Info(args ...interface{}) + func (l *Log) Infof(fmt string, args ...interface{}) + type Logger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + type Node struct + Features map[string]*json.RawMessage + IPAddr string + TimeNs int64 + type PacketMode struct + Id int + Secret []byte + type Params struct + Addr string + FeatureDir string + Features string + Log Log + Port int + ReceiveModes map[int]*PacketMode + S3Bucket string + S3Creds []byte + S3DryRun bool + S3Prefix string + S3Region string + SendMode *PacketMode + StateDir string + func DefaultParams() *Params