executor

package
v0.0.0-...-ef9407b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleActionNew    = "new"
	RuleActionDelete = "delete"
	RuleActionUpdate = "update"
	RuleActionStart  = "start"
	RuleActionStop   = "stop"
)
View Source
const (
	RuleStatusIdle    = "idle"
	RuleStatusStarted = "started"
	RuleStatusStoped  = "stoped"
)

Variables

View Source
var Configs = map[string]string{}

Functions

func HandleRuleNotification

func HandleRuleNotification(r *Rule) error

HandleRuleNotification handle rule notifications recevied from kafka, it will check rule's validity,for example, wether rule exist in database.

Types

type ExecutorService

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

func (*ExecutorService) Name

func (s *ExecutorService) Name() string

Name

func (*ExecutorService) Start

func (s *ExecutorService) Start() error

Start

func (*ExecutorService) Stop

func (s *ExecutorService) Stop()

Stop

type ExecutorServiceFactory

type ExecutorServiceFactory struct{}

func (*ExecutorServiceFactory) New

New create executor service factory

type Rule

type Rule struct {
	RuleName  string `json:"ruleName"`
	RuleId    string `json:"ruleId"`
	ProductId string `json:"productId"`
	Sal       string `json:"sql"`
	Target    string `json:"target"`
	Status    string `json:"status"`
	Action    string
}

Jump to

Keyboard shortcuts

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