models

package
v0.0.0-...-72e41ce Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Description() string
}

type Condition

type Condition interface {
	IsAnd() bool
	IsOrg() bool
	IsNot() bool
	Description() string
}

type Event

type Event interface {
	LastFired() time.Time
}

type Plugin

type Plugin struct {
	Name        string            `json:"name"`
	Description string            `json:"description"`
	Version     string            `json:"version"`
	Events      []PluginEvent     `json:"events"`
	Conditions  []PluginCondition `json:"conditions"`
	Actions     []PluginAction    `json:"actions"`
}

type PluginAction

type PluginAction struct {
	PluginComponent
}

type PluginComponent

type PluginComponent struct {
	Name  string `json:"name"`
	Entry string `json:"entry"`
}

type PluginCondition

type PluginCondition struct {
	PluginComponent
}

type PluginEvent

type PluginEvent struct {
	PluginComponent
}

type Rule

type Rule interface {
	Event() Event
	Actions() []Action
	Conditions() []Condition
	Name() string
}

Jump to

Keyboard shortcuts

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