models

package
v0.2.0-dev.32 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

models describes the data types that will be used when storing export data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoredObject

type StoredObject struct {

	// AppServiceKey identifies the app to which this data belongs.
	AppServiceKey string

	// Payload is the data to be exported
	Payload []byte

	// RetryCount is how many times this has tried to be exported
	RetryCount int

	// PipelinePosition is where to pickup in the pipeline
	PipelinePosition int

	// Version is a hash of the functions to know if the pipeline has changed.
	Version string

	// CorrelationID is an identifier provided by EdgeX to track this record as it moves
	CorrelationID string

	// EventID is used to identify an EdgeX event from the core services and mark it as pushed.
	EventID string

	// EventChecksum is used to identify CBOR encoded data from the core services and mark it as pushed.
	EventChecksum string
	// contains filtered or unexported fields
}

StoredObject is the atomic and most abstract description of what is collected by the export store system.

func NewStoredObject

func NewStoredObject(id string, appServiceKey string, payload []byte, pipelinePosition int,
	version string) StoredObject

NewStoredObject creates a new instance of StoredObject and is the preferred way to create one.

func (StoredObject) GetId

func (o StoredObject) GetId() string

GetId returns the unexported field id.

Jump to

Keyboard shortcuts

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