watchful

package module
v0.0.0-...-c59559d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: MIT Imports: 4 Imported by: 0

README

Watchful

Watchful is job runner and notifier application.


Technologies

Go (Backend)

Vue.js (Client)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicSource

type DynamicSource struct {
	TaskID     int    `json:"taskID"`
	OutputName string `json:"outputName"`
}

type Executable

type Executable interface {
	Identifier() string
	Instruction() Instruction
	Execute(map[string]interface{}) (map[string]InputValue, error)
}

type InputValue

type InputValue struct {
	Type ParamType   `json:"type"`
	Val  interface{} `json:"val"`
}

func (*InputValue) Scan

func (iv *InputValue) Scan(value interface{}) error

func (*InputValue) UnmarshalJSON

func (iv *InputValue) UnmarshalJSON(b []byte) error

func (InputValue) Value

func (iv InputValue) Value() (driver.Value, error)

type Instruction

type Instruction struct {
	Dynamic bool    `json:"dynamic"`
	Input   []Param `json:"input"`
	Output  []Param `json:"output"`
}

type Param

type Param struct {
	Type     ParamType `json:"type"`
	Name     string    `json:"name"`
	Required bool      `json:"required"`
}

type ParamType

type ParamType int
const (
	ParamInt ParamType = iota
	ParamString
	ParamFloat
	ParamBool
	ParamArray
	ParamDynamic = 900
)

Directories

Path Synopsis
cmd
pkg
api

Jump to

Keyboard shortcuts

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