engine

package
v0.0.0-...-d8db40b Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(handler IHandler)
}

func Parse

func Parse(str string) Command

type EventLoop

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

func (*EventLoop) AwaitFinish

func (eventLoop *EventLoop) AwaitFinish()

func (*EventLoop) Post

func (eventLoop *EventLoop) Post(cmd Command)

func (*EventLoop) Start

func (eventLoop *EventLoop) Start()

type Handler

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

type IHandler

type IHandler interface {
	Post(cmd Command)
}

type PrintCmd

type PrintCmd struct {
	Msg string
}

func (PrintCmd) Execute

func (pc PrintCmd) Execute(handler IHandler)

type ReverseCmd

type ReverseCmd struct {
	Str string
}

func (ReverseCmd) Execute

func (dc ReverseCmd) Execute(handler IHandler)

Jump to

Keyboard shortcuts

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