api

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("key not found")

Functions

This section is empty.

Types

type FunctionContext

type FunctionContext interface {
	PutState(key string, value []byte) error
	GetState(key string) ([]byte, error)
}

type FunctionInstance

type FunctionInstance interface {
	Context() context.Context
	FunctionContext() FunctionContext
	Definition() *model.Function
	Index() int32
	Stop()
	Run(runtime FunctionRuntime, sources []<-chan contube.Record, sink chan<- contube.Record)
	Logger() *common.Logger
}

type FunctionInstanceFactory

type FunctionInstanceFactory interface {
	NewFunctionInstance(f *model.Function, funcCtx FunctionContext, i int32, logger *common.Logger) FunctionInstance
}

type FunctionRuntime

type FunctionRuntime interface {
	Call(e contube.Record) (contube.Record, error)
	Stop()
}

type FunctionRuntimeFactory

type FunctionRuntimeFactory interface {
	NewFunctionRuntime(instance FunctionInstance) (FunctionRuntime, error)
}

type StateStore

type StateStore interface {
	PutState(key string, value []byte) error
	GetState(key string) ([]byte, error)
	Close() error
}

Jump to

Keyboard shortcuts

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