machine

package
v0.0.0-...-1646a41 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: BSD-2-Clause Imports: 2 Imported by: 6

Documentation

Overview

generic machine interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

func Activate()

Dummy function used to force inclusion of this library

func GetRegistered

func GetRegistered() []string

func IsRegistered

func IsRegistered(name string) bool

func Register

func Register(name string, gen Registration) error

Types

type Machine

type Machine interface {
	cores.Dumper
	GetDebugStatus() bool
	SetDebug(value bool)
	InstallProgram(input <-chan byte) error
	Startup() error
	Shutdown() error
	Run() error
}

func New

func New(name string, args ...interface{}) (Machine, error)

type Registrar

type Registrar func(...interface{}) (Machine, error)

func (Registrar) New

func (this Registrar) New(args ...interface{}) (Machine, error)

type Registration

type Registration interface {
	New(args ...interface{}) (Machine, error)
}

Jump to

Keyboard shortcuts

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