Documentation ¶
Index ¶
- Constants
- type Change
- type Data
- type DestinationConfigureRequest
- type DestinationConfigureResponse
- type DestinationLifecycleOnCreatedRequest
- type DestinationLifecycleOnCreatedResponse
- type DestinationLifecycleOnDeletedRequest
- type DestinationLifecycleOnDeletedResponse
- type DestinationLifecycleOnUpdatedRequest
- type DestinationLifecycleOnUpdatedResponse
- type DestinationPlugin
- type DestinationRunRequest
- type DestinationRunResponse
- type DestinationRunStream
- type DestinationStartRequest
- type DestinationStartResponse
- type DestinationStopRequest
- type DestinationStopResponse
- type DestinationTeardownRequest
- type DestinationTeardownResponse
- type Operation
- type ParameterType
- type ParameterValidation
- type RawData
- type Record
- type SourceConfigureRequest
- type SourceConfigureResponse
- type SourceLifecycleOnCreatedRequest
- type SourceLifecycleOnCreatedResponse
- type SourceLifecycleOnDeletedRequest
- type SourceLifecycleOnDeletedResponse
- type SourceLifecycleOnUpdatedRequest
- type SourceLifecycleOnUpdatedResponse
- type SourcePlugin
- type SourceRunRequest
- type SourceRunResponse
- type SourceRunStream
- type SourceStartRequest
- type SourceStartResponse
- type SourceStopRequest
- type SourceStopResponse
- type SourceTeardownRequest
- type SourceTeardownResponse
- type SpecifierParameter
- type SpecifierPlugin
- type SpecifierSpecifyRequest
- type SpecifierSpecifyResponse
- type StructuredData
- type ValidationType
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 DestinationConfigureResponse ¶
type DestinationConfigureResponse struct{}
type DestinationLifecycleOnCreatedRequest ¶ added in v0.5.0
type DestinationLifecycleOnCreatedResponse ¶ added in v0.5.0
type DestinationLifecycleOnCreatedResponse struct{}
type DestinationLifecycleOnDeletedRequest ¶ added in v0.5.0
type DestinationLifecycleOnDeletedResponse ¶ added in v0.5.0
type DestinationLifecycleOnDeletedResponse struct{}
type DestinationLifecycleOnUpdatedRequest ¶ added in v0.5.0
type DestinationLifecycleOnUpdatedResponse ¶ added in v0.5.0
type DestinationLifecycleOnUpdatedResponse struct{}
type DestinationPlugin ¶
type DestinationPlugin interface { Configure(context.Context, DestinationConfigureRequest) (DestinationConfigureResponse, error) Start(context.Context, DestinationStartRequest) (DestinationStartResponse, error) Run(context.Context, DestinationRunStream) error Stop(context.Context, DestinationStopRequest) (DestinationStopResponse, error) Teardown(context.Context, DestinationTeardownRequest) (DestinationTeardownResponse, error) LifecycleOnCreated(context.Context, DestinationLifecycleOnCreatedRequest) (DestinationLifecycleOnCreatedResponse, error) LifecycleOnUpdated(context.Context, DestinationLifecycleOnUpdatedRequest) (DestinationLifecycleOnUpdatedResponse, error) LifecycleOnDeleted(context.Context, DestinationLifecycleOnDeletedRequest) (DestinationLifecycleOnDeletedResponse, error) }
type DestinationRunRequest ¶
type DestinationRunRequest struct {
Record Record
}
type DestinationRunResponse ¶
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 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 SourceConfigureRequest ¶
type SourceConfigureResponse ¶
type SourceConfigureResponse struct{}
type SourceLifecycleOnCreatedRequest ¶ added in v0.5.0
type SourceLifecycleOnCreatedResponse ¶ added in v0.5.0
type SourceLifecycleOnCreatedResponse struct{}
type SourceLifecycleOnDeletedRequest ¶ added in v0.5.0
type SourceLifecycleOnDeletedResponse ¶ added in v0.5.0
type SourceLifecycleOnDeletedResponse struct{}
type SourceLifecycleOnUpdatedRequest ¶ added in v0.5.0
type SourceLifecycleOnUpdatedResponse ¶ added in v0.5.0
type SourceLifecycleOnUpdatedResponse struct{}
type SourcePlugin ¶
type SourcePlugin interface { Configure(context.Context, SourceConfigureRequest) (SourceConfigureResponse, error) Start(context.Context, SourceStartRequest) (SourceStartResponse, error) Run(context.Context, SourceRunStream) error Stop(context.Context, SourceStopRequest) (SourceStopResponse, error) Teardown(context.Context, SourceTeardownRequest) (SourceTeardownResponse, error) LifecycleOnCreated(context.Context, SourceLifecycleOnCreatedRequest) (SourceLifecycleOnCreatedResponse, error) LifecycleOnUpdated(context.Context, SourceLifecycleOnUpdatedRequest) (SourceLifecycleOnUpdatedResponse, error) LifecycleOnDeleted(context.Context, SourceLifecycleOnDeletedRequest) (SourceLifecycleOnDeletedResponse, error) }
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 )
Click to show internal directories.
Click to hide internal directories.