ctrler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenCmd

func ListenCmd(this EventCommiter, inStream io.Reader)

func ListenSign

func ListenSign(this EventCommiter)

Types

type Ctrler

type Ctrler struct {
}

func New

func New() *Ctrler

func (*Ctrler) Emit

func (this *Ctrler) Emit(cmd string)

func (*Ctrler) EmitError

func (this *Ctrler) EmitError(err error)

type EventCommiter

type EventCommiter interface {
	Emit(cmd string)
	EmitError(err error)
}

type EventListener

type EventListener interface {
	On(cmd string)
	OnError(err error)
}

Jump to

Keyboard shortcuts

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