Documentation
¶
Index ¶
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 ¶
func NewExtractorFactory ¶
func NewExtractorFactory(ctx context.Context, config PubsubConfig) (entity.ExtractorFactory, error)
NewExtractorFactory creates a Pubsub extractory factory.
Types ¶
type DefaultSubConfigurator ¶
type DefaultSubConfigurator struct{}
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 PubsubConfig ¶
type PubsubConfig struct { // ProjectId (required) specifies GCP project ID for this deployment. ProjectId string // Env is only required to be filled in if stream specs for this use of Geist are using different // topic specs for different environments, typically "dev", "stage", and "prod". // Any string is allowed as long as it matches the ones used in the stream specs. Env string // The following fields (optional) sets the default values, if not specified in the stream spec. // See entity.Spec for more info. MaxOutstandingMessages int MaxOutstandingBytes int }
PubsubConfig is the external config provided by the geist client to the factory when starting up, which is to be used during stream creations
TODO: Check if non-nil default values should be added to MaxOutstandingXxx
type SubConfigurator ¶
type SubConfigurator interface {
Update(sub Subscription, rs pubsub.ReceiveSettings)
}
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.