gleam

package module
v0.0.0-...-29a9392 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 19 Imported by: 1

README

gLeam

Build Status

gLeam witch works with mqtt is a cluster for executing customised tasks.

Installing & Running

Authors

Open Source - MIT Software License

See LICENSE.

Documentation

Index

Constants

View Source
const (
	TopicAll        = ""
	TopicIndividual = "i"
	TopicBroadcast  = "b"
)
View Source
const (
	MessageFunc        = "onDefaultMessage"
	ErrorFunc          = "onError"
	InitFunc           = "init"
	AfterInitFunc      = "afterInit"
	BeforeFinalizeFunc = "beforeFinalize"
	FinalizeFunc       = "finalize"

	LogFunc  = "log"
	LogfFunc = "logf"

	ConfigVar = "config"

	LuaCallStackSize       = 1024
	LuaIncludeGoStackTrace = true
	LuaRegistrySize        = 1024 * 64
	LuaSkipOpenLibs        = false

	BootstrapFile = "bootstrap.lua"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientId  string
	FinalTick time.Duration

	MQTT         []ConfigMQTT
	NotVerifyTLS bool

	Tasks    map[string]ConfigTask
	Schedule ConfigSchedule
}

type ConfigMQTT

type ConfigMQTT struct {
	Addr     string
	Username string
	Password string
}

type ConfigSchedule

type ConfigSchedule struct {
	Tick  time.Duration
	Tasks map[string]time.Duration
}

type ConfigTask

type ConfigTask map[string]byte

type Gleam

type Gleam struct {
	// contains filtered or unexported fields
}

func NewGleam

func NewGleam(workdir string) *Gleam

func (*Gleam) Final

func (g *Gleam) Final() error

func (*Gleam) Init

func (g *Gleam) Init() error

func (*Gleam) Serve

func (g *Gleam) Serve()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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