nsStream

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

Documentation

Index

Constants

View Source
const (
	NS_STREAM_TYPE  = "nsStream"
	NS_STREAM_ERROR = "nsStream error: "
	CREATE          = "create"
	START           = "start"
	STOP            = "stop"
	LIMIT           = "limit"
	FOREACH         = "foreach"
	FILTER          = "filter"
	MAP             = "map"
	FOLD            = "fold"
)

Variables

View Source
var (
	NsStream   = stats.New("nsStream")
	Create     = NsStream.NewCounter("Create")
	Destroy    = NsStream.NewCounter("Destroy")
	Start      = NsStream.NewCounter("Start")
	Stop       = NsStream.NewCounter("Stop")
	ErrCreate  = NsStream.NewCounter("ErrCreate")
	ErrDestroy = NsStream.NewCounter("ErrDestroy")
	ErrStart   = NsStream.NewCounter("ErrStart")
	ErrStop    = NsStream.NewCounter("ErrStop")
)

Functions

This section is empty.

Types

type Function

type Function struct {
	Name       string
	Parameters []interface{}
	Evaluator  interface{}
}

type NsStreamModule

type NsStreamModule struct {
	AccountId    string
	InvocationId string
	Memory       uint64
}

func NewNsStreamModule

func NewNsStreamModule(accountId string, invocationId string, memory uint64) *NsStreamModule

func (*NsStreamModule) Loader

func (nsStream *NsStreamModule) Loader(L *lua.LState) int

type Source

type Source struct {
	Name       string
	Connection interface{}
}

type StreamJob

type StreamJob struct {
	JobId        string
	InvocationId string
	Memory       uint64
	Source       Source
	Functions    []Function
	Description  string
}

Jump to

Keyboard shortcuts

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