Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaMessage ¶
func (*KafkaMessage) GetBucket ¶
func (m *KafkaMessage) GetBucket() (string, error)
func (*KafkaMessage) GetEvent ¶
func (m *KafkaMessage) GetEvent() (EventName, error)
func (*KafkaMessage) GetItem ¶
func (m *KafkaMessage) GetItem() (string, error)
type KafkaProvider ¶
type KafkaProvider struct {
// contains filtered or unexported fields
}
func NewKafkaProvider ¶
func NewKafkaProvider(mpConfig MessageProviderConfig) (KafkaProvider, error)
func (*KafkaProvider) ReceiveMessage ¶
func (k *KafkaProvider) ReceiveMessage(ctx context.Context) (Message, error)
type Message ¶
type Message interface { GetEvent() (EventName, error) GetBucket() (string, error) GetItem() (string, error) }
Message A generic message related to an S3 bucket and item
type MessageProvider ¶
type MessageProvider interface { ReceiveMessage(ctx context.Context) (Message, error) Close(ctx context.Context) error }
MessageProvider Reads and returns messages from a given queue (or topic)
type MessageProviderBuilder ¶
type MessageProviderBuilder interface {
GetMessageProvider(config MessageProviderConfig) (MessageProvider, error)
}
MessageProviderBuilder Returns a builder for a MessageProvider
func GetDefaultMessageProviderBuilder ¶
func GetDefaultMessageProviderBuilder() MessageProviderBuilder
type MessageProviderConfig ¶
type SqsMessage ¶
type SqsMessage struct {
Records []SqsRecord `json:"Records"`
}
func (*SqsMessage) GetBucket ¶
func (m *SqsMessage) GetBucket() (string, error)
func (*SqsMessage) GetEvent ¶
func (m *SqsMessage) GetEvent() (EventName, error)
func (*SqsMessage) GetItem ¶
func (m *SqsMessage) GetItem() (string, error)
type SqsProvider ¶
type SqsProvider struct {
// contains filtered or unexported fields
}
func NewSqsProvider ¶
func NewSqsProvider(mpConfig MessageProviderConfig) (SqsProvider, error)
func (*SqsProvider) ReceiveMessage ¶
func (s *SqsProvider) ReceiveMessage(ctx context.Context) (Message, error)
Click to show internal directories.
Click to hide internal directories.