exec

package
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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchExtensions

func SearchExtensions(folderPath string, fn func(watchful.Executable, error)) error

SearchExtensions recursively loads all plugins in target folderPath and converts them to watchful.Executable. Then calls callback fn with each of them

Types

type Service

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

func New

func New(log *log.Logger, db *sqlx.DB) *Service

func (*Service) AddJob

func (s *Service) AddJob(job *model.Job, isTestRun bool) string

func (*Service) Executables

func (s *Service) Executables() map[string]watchful.Executable

func (*Service) RegisterExecutable

func (s *Service) RegisterExecutable(e watchful.Executable)

func (*Service) Run

func (s *Service) Run() error

func (*Service) Shutdown

func (s *Service) Shutdown()

Shutdown blocks until it's done working

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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