types

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigDir = "./config/"

ConfigDir the directory for config files

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	XMLName      xml.Name `xml:"dependencies"`
	Dependencies []string `xml:"dependency"`
}

Dependencies struct - dependencies xml interface

type Events

type Events struct {
	XMLName   xml.Name   `xml:"events"`
	Listeners []Listener `xml:"listener"`
}

Events struct - events xml interface

type Exception

type Exception struct {
	Message string `json:"message"`
}

Exception struct declaration

type Listener

type Listener struct {
	XMLName xml.Name `xml:"listener"`
	For     string   `xml:"for,attr"`
	Call    string   `xml:"call,attr"`
	Name    string   `xml:"name,attr"`
}

Listener struct - listener xml interface

type ModuleConfig

type ModuleConfig struct {
	XMLName xml.Name `xml:"module"`
	Name    string   `xml:"name"`
	Enabled bool     `xml:"enabled"`
}

ModuleConfig structure for specific module

type ModuleXML

type ModuleXML struct {
	XMLName      xml.Name     `xml:"module"`
	Name         string       `xml:"name"`
	Version      string       `xml:"version"`
	Events       Events       `xml:"events"`
	Dependencies Dependencies `xml:"dependencies"`
	Dir          string
}

ModuleXML struct - xml interface

type ModulesConfigXML

type ModulesConfigXML struct {
	XMLName xml.Name       `xml:"modules"`
	Modules []ModuleConfig `xml:"module"`
}

ModulesConfigXML structure for XML of modules config

Jump to

Keyboard shortcuts

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