common

package
v0.0.0-...-fdd8d4b Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *zap.SugaredLogger

Logger returns a logger of the 'terminal' namespace

Types

type BaseSubProc

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

func NewBaseSubProc

func NewBaseSubProc() *BaseSubProc

func (*BaseSubProc) BaseDispose

func (p *BaseSubProc) BaseDispose()

func (*BaseSubProc) Err

func (p *BaseSubProc) Err() <-chan error

func (*BaseSubProc) GotError

func (p *BaseSubProc) GotError(err error)

func (*BaseSubProc) Stopped

func (p *BaseSubProc) Stopped() <-chan struct{}

type OnError

type OnError func(err error)

type PacketSender

type PacketSender interface {
	Send(p packet.Packet) error
}

type SubProc

type SubProc interface {
	Run(ctx context.Context)
	Err() <-chan error
	Stopped() <-chan struct{}
}

Jump to

Keyboard shortcuts

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