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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
gleam command

Jump to

Keyboard shortcuts

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