runtime

package
v2.0.0-dev.11 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: Remove once completely switched over to V2 API DTOs
	ApiV1 = "v1"
	ApiV2 = "v2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GolangRuntime

type GolangRuntime struct {
	TargetType interface{}
	ServiceKey string
	// contains filtered or unexported fields
}

GolangRuntime represents the golang runtime environment

func (*GolangRuntime) ExecutePipeline

func (gr *GolangRuntime) ExecutePipeline(target interface{}, contentType string, edgexcontext *appcontext.Context,
	transforms []appcontext.AppFunction, startPosition int, isRetry bool) *MessageError

func (*GolangRuntime) Initialize

func (gr *GolangRuntime) Initialize(storeClient dbInterfaces.StoreClient, secretProvider interfaces.SecretProvider)

Initialize sets the internal reference to the StoreClient for use when Store and Forward is enabled

func (*GolangRuntime) ProcessMessage

func (gr *GolangRuntime) ProcessMessage(edgexcontext *appcontext.Context, envelope types.MessageEnvelope) *MessageError

ProcessMessage sends the contents of the message thru the functions pipeline

func (*GolangRuntime) SetTransforms

func (gr *GolangRuntime) SetTransforms(transforms []appcontext.AppFunction)

SetTransforms is thread safe to set transforms

func (*GolangRuntime) StartStoreAndForward

func (gr *GolangRuntime) StartStoreAndForward(
	appWg *sync.WaitGroup,
	appCtx context.Context,
	enabledWg *sync.WaitGroup,
	enabledCtx context.Context,
	serviceKey string,
	config *common.ConfigurationStruct,
	edgeXClients common.EdgeXClients)

type MessageError

type MessageError struct {
	Err       error
	ErrorCode int
}

Jump to

Keyboard shortcuts

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