cpluginv1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpenCDCVersion is a constant that should be used as the value in the
	// metadata field MetadataVersion. It ensures the OpenCDC format version can
	// be easily identified in case the record gets marshaled into a different
	// untyped format (e.g. JSON).
	OpenCDCVersion = "v1"

	// MetadataOpenCDCVersion is a Record.Metadata key for the version of the
	// OpenCDC format (e.g. "v1"). This field exists to ensure the OpenCDC
	// format version can be easily identified in case the record gets marshaled
	// into a different untyped format (e.g. JSON).
	MetadataOpenCDCVersion = "opencdc.version"
	// MetadataCreatedAt is a Record.Metadata key for the time when the record
	// was created in the 3rd party system. The expected format is a unix
	// timestamp in nanoseconds.
	MetadataCreatedAt = "opencdc.createdAt"
	// MetadataReadAt is a Record.Metadata key for the time when the record was
	// read from the 3rd party system. The expected format is a unix timestamp
	// in nanoseconds.
	MetadataReadAt = "opencdc.readAt"
	// MetadataCollection is a Record.Metadata key for the name of the collection
	// where the record originated from and/or where it should be stored.
	MetadataCollection = "opencdc.collection"

	// MetadataConduitSourcePluginName is a Record.Metadata key for the name of
	// the source plugin that created this record.
	MetadataConduitSourcePluginName = "conduit.source.plugin.name"
	// MetadataConduitSourcePluginVersion is a Record.Metadata key for the
	// version of the source plugin that created this record.
	MetadataConduitSourcePluginVersion = "conduit.source.plugin.version"
	// MetadataConduitDestinationPluginName is a Record.Metadata key for the
	// name of the destination plugin that has written this record
	// (only available in records once they are written by a destination).
	MetadataConduitDestinationPluginName = "conduit.destination.plugin.name"
	// MetadataConduitDestinationPluginVersion is a Record.Metadata key for the
	// version of the destination plugin that has written this record
	// (only available in records once they are written by a destination).
	MetadataConduitDestinationPluginVersion = "conduit.destination.plugin.version"

	// MetadataConduitSourceConnectorID is a Record.Metadata key for the ID of
	// the source connector that produced this record.
	MetadataConduitSourceConnectorID = "conduit.source.connector.id"
	// MetadataConduitDLQNackError is a Record.Metadata key for the error that
	// caused a record to be nacked and pushed to the dead-letter queue.
	MetadataConduitDLQNackError = "conduit.dlq.nack.error"
	// MetadataConduitDLQNackNodeID is a Record.Metadata key for the ID of the
	// internal node that nacked the record.
	MetadataConduitDLQNackNodeID = "conduit.dlq.nack.node.id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Change added in v0.3.0

type Change struct {
	Before Data
	After  Data
}

type Data

type Data interface {
	// contains filtered or unexported methods
}

type DestinationConfigureRequest

type DestinationConfigureRequest struct {
	Config map[string]string
}

type DestinationConfigureResponse

type DestinationConfigureResponse struct{}

type DestinationLifecycleOnCreatedRequest added in v0.5.0

type DestinationLifecycleOnCreatedRequest struct {
	Config map[string]string
}

type DestinationLifecycleOnCreatedResponse added in v0.5.0

type DestinationLifecycleOnCreatedResponse struct{}

type DestinationLifecycleOnDeletedRequest added in v0.5.0

type DestinationLifecycleOnDeletedRequest struct {
	Config map[string]string
}

type DestinationLifecycleOnDeletedResponse added in v0.5.0

type DestinationLifecycleOnDeletedResponse struct{}

type DestinationLifecycleOnUpdatedRequest added in v0.5.0

type DestinationLifecycleOnUpdatedRequest struct {
	ConfigBefore map[string]string
	ConfigAfter  map[string]string
}

type DestinationLifecycleOnUpdatedResponse added in v0.5.0

type DestinationLifecycleOnUpdatedResponse struct{}

type DestinationRunRequest

type DestinationRunRequest struct {
	Record Record
}

type DestinationRunResponse

type DestinationRunResponse struct {
	AckPosition []byte
	Error       string
}

type DestinationRunStream

type DestinationRunStream interface {
	Send(DestinationRunResponse) error
	Recv() (DestinationRunRequest, error)
}

type DestinationStartRequest

type DestinationStartRequest struct{}

type DestinationStartResponse

type DestinationStartResponse struct{}

type DestinationStopRequest

type DestinationStopRequest struct {
	LastPosition []byte
}

type DestinationStopResponse

type DestinationStopResponse struct{}

type DestinationTeardownRequest

type DestinationTeardownRequest struct{}

type DestinationTeardownResponse

type DestinationTeardownResponse struct{}

type Operation added in v0.3.0

type Operation int
const (
	OperationCreate Operation = iota + 1
	OperationUpdate
	OperationDelete
	OperationSnapshot
)

type ParameterType added in v0.4.0

type ParameterType int
const (
	ParameterTypeString ParameterType = iota + 1
	ParameterTypeInt
	ParameterTypeFloat
	ParameterTypeBool
	ParameterTypeFile
	ParameterTypeDuration
)

type ParameterValidation added in v0.4.0

type ParameterValidation struct {
	Type  ValidationType
	Value string
}

type RawData

type RawData []byte

type Record

type Record struct {
	Position  []byte
	Operation Operation
	Metadata  map[string]string
	Key       Data
	Payload   Change
}

type SourceConfigureRequest

type SourceConfigureRequest struct {
	Config map[string]string
}

type SourceConfigureResponse

type SourceConfigureResponse struct{}

type SourceLifecycleOnCreatedRequest added in v0.5.0

type SourceLifecycleOnCreatedRequest struct {
	Config map[string]string
}

type SourceLifecycleOnCreatedResponse added in v0.5.0

type SourceLifecycleOnCreatedResponse struct{}

type SourceLifecycleOnDeletedRequest added in v0.5.0

type SourceLifecycleOnDeletedRequest struct {
	Config map[string]string
}

type SourceLifecycleOnDeletedResponse added in v0.5.0

type SourceLifecycleOnDeletedResponse struct{}

type SourceLifecycleOnUpdatedRequest added in v0.5.0

type SourceLifecycleOnUpdatedRequest struct {
	ConfigBefore map[string]string
	ConfigAfter  map[string]string
}

type SourceLifecycleOnUpdatedResponse added in v0.5.0

type SourceLifecycleOnUpdatedResponse struct{}

type SourceRunRequest

type SourceRunRequest struct {
	AckPosition []byte
}

type SourceRunResponse

type SourceRunResponse struct {
	Record Record
}

type SourceRunStream

type SourceRunStream interface {
	Send(SourceRunResponse) error
	Recv() (SourceRunRequest, error)
}

type SourceStartRequest

type SourceStartRequest struct {
	Position []byte
}

type SourceStartResponse

type SourceStartResponse struct{}

type SourceStopRequest

type SourceStopRequest struct{}

type SourceStopResponse

type SourceStopResponse struct {
	LastPosition []byte
}

type SourceTeardownRequest

type SourceTeardownRequest struct{}

type SourceTeardownResponse

type SourceTeardownResponse struct{}

type SpecifierParameter

type SpecifierParameter struct {
	Default string
	// Deprecated: Use ValidationTypeRequired instead.
	Required    bool
	Description string
	Type        ParameterType
	Validations []ParameterValidation
}

type SpecifierPlugin

type SpecifierPlugin interface {
	Specify(context.Context, SpecifierSpecifyRequest) (SpecifierSpecifyResponse, error)
}

type SpecifierSpecifyRequest

type SpecifierSpecifyRequest struct{}

type SpecifierSpecifyResponse

type SpecifierSpecifyResponse struct {
	Name              string
	Summary           string
	Description       string
	Version           string
	Author            string
	DestinationParams map[string]SpecifierParameter
	SourceParams      map[string]SpecifierParameter
}

type StructuredData

type StructuredData map[string]interface{}

type ValidationType added in v0.4.0

type ValidationType int
const (
	ValidationTypeRequired ValidationType = iota + 1
	ValidationTypeGreaterThan
	ValidationTypeLessThan
	ValidationTypeInclusion
	ValidationTypeExclusion
	ValidationTypeRegex
)

Directories

Path Synopsis
internal
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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