core

package
v0.0.0-...-cf2ac4b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEndpoint

func AddEndpoint(path string, handler http.Handler)

AddEndpoint Adds a http endpoint to the server

func NewVMWithPlugins

func NewVMWithPlugins(context types.JobContext) *otto.Otto

NewVMWithPlugins Creates a new VM instance using plugins. @Param context map[string]interface{} Contains information about the process who creates this VM

func RegisterPlugin

func RegisterPlugin(plugin types.Plugin)

RegisterPlugin Registers a plugin

func StartServer

func StartServer(port int)

StartServer Starts graphql api on selected port

Types

type JobEngine

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

JobEngine Represents the state machine manager

func GetEngineInstance

func GetEngineInstance() *JobEngine

GetEngineInstance Returns the singleton instance of JobEngine

func (*JobEngine) ExecuteStoredJob

func (engine *JobEngine) ExecuteStoredJob(jobName string, receivedParameters map[string]interface{}) error

ExecuteStoredJob Executes an existing job

func (*JobEngine) GetJobByName

func (engine *JobEngine) GetJobByName(name string) (types.Job, error)

GetJobByName Returns the job with specified name

func (*JobEngine) GetJobs

func (engine *JobEngine) GetJobs() []types.Job

GetJobs Returns the list of jobs registered

func (*JobEngine) Start

func (engine *JobEngine) Start()

Start Starts engine logic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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