Documentation ¶
Index ¶
- Constants
- func NewDestination() sdk.Destination
- type Config
- type Destination
- func (d *Destination) Configure(ctx context.Context, cfg config.Config) error
- func (d *Destination) Open(context.Context) error
- func (d *Destination) Parameters() config.Parameters
- func (d *Destination) Teardown(context.Context) error
- func (d *Destination) Write(_ context.Context, records []opencdc.Record) (int, error)
- type Writer
Constants ¶
View Source
const ( ConfigConnectionName = "connectionName" ConfigCredentialsFilePath = "credentialsFilePath" ConfigMaxReconnects = "maxReconnects" ConfigNkeyPath = "nkeyPath" ConfigReconnectWait = "reconnectWait" ConfigSubject = "subject" ConfigTlsClientCertPath = "tls.clientCertPath" ConfigTlsClientPrivateKeyPath = "tls.clientPrivateKeyPath" ConfigTlsRootCACertPath = "tls.rootCACertPath" ConfigUrls = "urls" )
Variables ¶
This section is empty.
Functions ¶
func NewDestination ¶
func NewDestination() sdk.Destination
NewDestination creates new instance of the Destination.
Types ¶
type Destination ¶
type Destination struct { sdk.UnimplementedDestination // contains filtered or unexported fields }
Destination NATS Connector sends records to a NATS subject.
func (*Destination) Open ¶
func (d *Destination) Open(context.Context) error
Open makes sure everything is prepared to receive records.
func (*Destination) Parameters ¶
func (d *Destination) Parameters() config.Parameters
Parameters returns a map of named config.Parameters that describe how to configure the Destination.
Click to show internal directories.
Click to hide internal directories.