base

package
v0.0.0-...-fe6dcde Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string `json:"Name"`
}

func (Config) GetName

func (c Config) GetName() string

type Configurer

type Configurer interface {
	GetName() string
}

type Loop

type Loop func()

type Module

type Module struct {
	*lifecycle.Handle
	Name   string
	Wrap   *module.Wrap
	Config Configurer
	Loop   Loop
}

func MakeModule

func MakeModule(w *module.Wrap) (Module, error)

func (*Module) Start

func (m *Module) Start()

func (*Module) Stop

func (m *Module) Stop()

Jump to

Keyboard shortcuts

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