modules

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvaliableModules = make(map[string]Module)

Settings map[string]interface{}

View Source
var Instances = make(map[string]Module)

Functions

func Register

func Register(m Module)

Types

type Module

type Module interface {
	GetName() string
	GetInfo() map[string]interface{}
	GetSettings() interface{}
	GetDefaultSettings() interface{}

	Init(string, int, interface{}, *events.EventsAPI) // IP, Port, Settings, pusher
	Up() error
	Down() error
}

func GetAvaliableModules

func GetAvaliableModules() []Module

func GetModuleByName

func GetModuleByName(name string) Module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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