rabbit_mq

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRabbitMqSinkPlugin

func NewRabbitMqSinkPlugin(config Config, schema []schema.StreamSchema, appCtx *stream_context.Context) sinks.DataSink

Types

type Config

type Config struct {
	Url          string `json:"url" yaml:"url"`
	ExchangeName string `json:"exchange_name" yaml:"exchange_name"`
	RoutingKey   string `json:"routing_key" yaml:"routing_key"`
}

type SinkPlugin

type SinkPlugin struct {
	// contains filtered or unexported fields
}

func (*SinkPlugin) Connect

func (s *SinkPlugin) Connect(ctx context.Context) error

func (*SinkPlugin) GetType

func (s *SinkPlugin) GetType() sinks.SinkDriver

func (*SinkPlugin) SetExpectedSchema

func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)

func (*SinkPlugin) Stop

func (s *SinkPlugin) Stop()

func (*SinkPlugin) Write

func (s *SinkPlugin) Write(message *message.Message) error

Jump to

Keyboard shortcuts

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