types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: GPL-2.0, GPL-3.0 Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppArgs

type AppArgs interface {
	Port() int
	HtpasswdPath() string
	SecretPath() string
	TmpDirPath() string
}

AppArgs in an arguments type for the application

type Eventable

type Eventable interface {
	Startable
	Observable
}

Eventable is a type which can be subsribed to and can trigger events

type IO

type IO interface {
	Input() interface{}
	Output() interface{}
}

IO is a type which can offer output and accept input

type Identifiable

type Identifiable interface {
	ID() string
}

Identifiable is a type with identification

type Observable

type Observable interface {
	Subscribe(Runnable) error
	Unsubscribe(Runnable) error
}

Observable is a type which you can subscribe and unsunscibe to

type Runnable

type Runnable interface {
	Run(TupleSpace) error
}

Runnable is a type which can run certain tasks

type Startable

type Startable interface {
	Start() error
	Stop() error
}

Startable is a type which can be started and stopped

type Styleable

type Styleable interface {
	Color() uint
	Icon() string
}

Styleable is an interface for types with a defined style

type Terminator

type Terminator interface {
	Terminate() error
}

Terminator is an abject which can be terminated

type Triggerable

type Triggerable interface {
	Listen(<-chan struct{}) error
	Trigger()
}

Triggerable is a type which returns a trigger and can listen on events

type TupleSpace

type TupleSpace interface {
	Close()
	Get(interface{}, ...interface{}) error
	Put(interface{}, ...interface{}) error
	Query(interface{}, ...interface{}) error
}

TupleSpace is used to store tuples per the LINDA communication language

Jump to

Keyboard shortcuts

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