Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Kind string `yaml:"kind"` GcpPublisher *GcpPublisher `yaml:"gcpPublisher"` GcpSubscriber *GcpSubscriber `yaml:"gcpSubscriber"` NatsPublisher *NatsPublisher `yaml:"natsPublisher"` NatsSubscriber *NatsSubscriber `yaml:"natsSubscriber"` }
Config represent a PubSub configuration, it is defined by its kind.
func (*Config) Subscriber ¶
type GcpPublisher ¶
type GcpPublisher struct {
Project string `yaml:"project"`
}
type GcpSubscriber ¶
type GcpSubscriber struct { GcpPublisher `yaml:",inline"` MaxExtension time.Duration `yaml:"maxExtension"` MaxExtensionPeriod time.Duration `yaml:"maxExtensionPeriod"` MinExtensionPeriod time.Duration `yaml:"minExtensionPeriod"` NumGoroutines int `yaml:"numGoroutines"` MaxOutstandingBytes int `yaml:"maxOutstandingBytes"` MaxOutstandingMessages int `yaml:"maxOutstandingMessages"` }
type NatsConnection ¶
type NatsPublisher ¶
type NatsPublisher struct {
NatsConnection `yaml:",inline"`
}
NatsPublisher is a nats publisher configuration To create publisher use our k8s ressources https://github.com/nats-io/nack
type NatsSubscriber ¶
type NatsSubscriber struct { NatsConnection `yaml:",inline"` Stream string `yaml:"stream"` ConsumerName string `yaml:"consumerName"` ConsumerGroupName string `yaml:"consumerGroupName"` }
NatsSubscriber is a nats subscriber configuration To create subscriber use our k8s ressources https://github.com/nats-io/nack
Click to show internal directories.
Click to hide internal directories.