engine

package
v0.0.0-...-dc1a46e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCatCommand

func NewCatCommand(arg1, arg2 string) *catCommand

func NewPrintCommand

func NewPrintCommand(arg string) *printCommand

func NewStopCommand

func NewStopCommand() *stopCommand

Types

type Command

type Command interface {
	Execute(handler Handler)
}

func Parse

func Parse(in string) Command

type Handler

type Handler interface {
	Post(cmd Command) error
}

type Loop

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

func (*Loop) AwaitFinish

func (l *Loop) AwaitFinish()

func (*Loop) Post

func (l *Loop) Post(cmd Command) error

func (*Loop) Start

func (l *Loop) Start()

Jump to

Keyboard shortcuts

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