Documentation ¶
Index ¶
- Constants
- Variables
- func NewDestination() sdk.Destination
- func NewSource() sdk.Source
- func Specification() sdk.Specification
- type Config
- type Destination
- func (d *Destination) Close(ctx context.Context) error
- func (d *Destination) Configure(ctx context.Context, cfg map[string]string) error
- func (d *Destination) Connect(ctx context.Context) error
- func (d *Destination) Open(ctx context.Context) error
- func (d *Destination) Parameters() map[string]sdk.Parameter
- func (d *Destination) Read(ctx context.Context) (*service.Message, service.AckFunc, error)
- func (d *Destination) Teardown(ctx context.Context) error
- func (d *Destination) Write(ctx context.Context, records []sdk.Record) (int, error)
- type DestinationConfig
- type Source
- func (s *Source) Ack(ctx context.Context, position sdk.Position) error
- func (s *Source) Close(ctx context.Context) error
- func (s *Source) Configure(ctx context.Context, cfg map[string]string) error
- func (s *Source) Connect(ctx context.Context) error
- func (s *Source) Open(ctx context.Context, pos sdk.Position) error
- func (s *Source) Parameters() map[string]sdk.Parameter
- func (s *Source) Read(ctx context.Context) (sdk.Record, error)
- func (s *Source) Teardown(ctx context.Context) error
- func (s *Source) Write(ctx context.Context, message *service.Message) error
- type SourceConfig
Constants ¶
View Source
const (
BenthosYaml = "benthos.yaml"
)
Variables ¶
View Source
var Connector = sdk.Connector{ NewSpecification: Specification, NewSource: NewSource, NewDestination: NewDestination, }
View Source
var (
ErrEmptyConfig = errors.New("missing or empty config")
)
View Source
var Required = []string{BenthosYaml}
Functions ¶
func NewDestination ¶
func NewDestination() sdk.Destination
func Specification ¶
func Specification() sdk.Specification
Specification returns the connector's specification.
Types ¶
type Destination ¶
type Destination struct { sdk.UnimplementedDestination // contains filtered or unexported fields }
func (*Destination) Parameters ¶
func (d *Destination) Parameters() map[string]sdk.Parameter
type DestinationConfig ¶
type DestinationConfig struct { Config // contains filtered or unexported fields }
func ParseDestinationConfig ¶
func ParseDestinationConfig(cfg map[string]string) (DestinationConfig, error)
type Source ¶
type Source struct { sdk.UnimplementedSource // contains filtered or unexported fields }
type SourceConfig ¶
type SourceConfig struct { Config // contains filtered or unexported fields }
func ParseSourceConfig ¶
func ParseSourceConfig(cfg map[string]string) (SourceConfig, error)
Click to show internal directories.
Click to hide internal directories.