model

package
v0.0.0-...-1c95f08 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SOURCE_KAFKA = "kafka"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	Name       string        `json:"name,omitempty"`
	Parameters []interface{} `json:"parameters,omitempty"`
	Evaluator  interface{}   `json:"evaluator,omitempty"`
}

func (*Function) Decode

func (function *Function) Decode() error

type Source

type Source struct {
	Name       string      `json:"name,omitempty"`
	Connection interface{} `json:"connection,omitempty"`
}

type StreamJob

type StreamJob struct {
	InvocationId string     `json:"invocationId,omitempty"`
	Memory       uint64     `json:"memory,omitempty"`
	Source       Source     `json:"source,omitempty"`
	Functions    []Function `json:"functions,omitempty"`
	Description  string     `json:"description,omitempty"`
}

func (*StreamJob) Validate

func (j *StreamJob) Validate() error

Jump to

Keyboard shortcuts

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