Documentation
¶
Index ¶
- Constants
- type DefaultSubConfigurator
- type Extractor
- func (e *Extractor) Extract(ctx context.Context, query model.ExtractorQuery, result any) (error, bool)
- func (e *Extractor) ExtractFromSink(ctx context.Context, query model.ExtractorQuery, result *[]*model.Transformed) (error, bool)
- func (e *Extractor) SendToSource(ctx context.Context, eventData any) (string, error)
- func (g *Extractor) SetMsgAckNackFunc(ack MsgAckFunc, nack MsgAckFunc)
- func (g *Extractor) SetSub(sub Subscription)
- func (g *Extractor) SetTopic(topic Topic)
- func (e *Extractor) StreamExtract(ctx context.Context, reportEvent model.ProcessEventFunc, err *error, ...)
- type ExtractorConfig
- type MsgAckFunc
- type PubsubClient
- type ReceiveSettings
- type SubConfigurator
- type Subscription
- type Topic
Constants ¶
View Source
const ( SubTypeUnique = "unique" ALREADY_EXISTS = 409 // Defined here due to lack of proper other place in GCP libs )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSubConfigurator ¶
type DefaultSubConfigurator struct{}
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
func NewExtractor ¶
The pubsub Extractor expects the pubsub topic to extract from, to already exist
func (*Extractor) ExtractFromSink ¶
func (e *Extractor) ExtractFromSink(ctx context.Context, query model.ExtractorQuery, result *[]*model.Transformed) (error, bool)
func (*Extractor) SendToSource ¶
func (*Extractor) SetMsgAckNackFunc ¶
func (g *Extractor) SetMsgAckNackFunc(ack MsgAckFunc, nack MsgAckFunc)
func (*Extractor) SetSub ¶
func (g *Extractor) SetSub(sub Subscription)
func (*Extractor) StreamExtract ¶
type ExtractorConfig ¶
type ExtractorConfig struct {
// contains filtered or unexported fields
}
func NewExtractorConfig ¶
func NewExtractorConfig( client PubsubClient, spec *model.Spec, topics []string, rs ReceiveSettings) *ExtractorConfig
type MsgAckFunc ¶
type PubsubClient ¶
type PubsubClient interface {
Topic(id string) *pubsub.Topic
CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (*pubsub.Subscription, error)
Subscription(id string) *pubsub.Subscription
}
type ReceiveSettings ¶
type SubConfigurator ¶
type SubConfigurator interface {
Update(sub Subscription, rs pubsub.ReceiveSettings)
}
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.