Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(cfg *datastore.PubSubConfig) error
Types ¶
type GooglePubSub ¶
type KafkaPubSub ¶ added in v1.1.6
type KafkaPubSub struct { Brokers []string `json:"brokers" valid:"required~brokers list is required"` ConsumerGroupID string `json:"consumer_group_id" valid:"required~consumer group ID is required"` TopicName string `json:"topic_name" valid:"required~topic name is required"` Auth *KafkaAuth `json:"auth"` }
type PS ¶
type PS struct { Type datastore.PubSubType `json:"type" valid:"required~type is required,supported_pub_sub~unsupported pub sub type"` Workers int `json:"workers" valid:"required"` }
type PubSubSource ¶
type PubSubSource struct {
// contains filtered or unexported fields
}
func NewPubSubSource ¶
func NewPubSubSource(source *datastore.Source, handler datastore.PubSubHandler, log log.StdLogger) (*PubSubSource, error)
func (*PubSubSource) Start ¶
func (p *PubSubSource) Start()
func (*PubSubSource) Stop ¶
func (p *PubSubSource) Stop()
type SourceLoader ¶
type SourceLoader struct {
// contains filtered or unexported fields
}
func NewSourceLoader ¶
func NewSourceLoader(endpointRepo datastore.EndpointRepository, sourceRepo datastore.SourceRepository, projectRepo datastore.ProjectRepository, queue queue.Queuer, sourcePool *SourcePool, log log.StdLogger) *SourceLoader
type SourcePool ¶
type SourcePool struct {
// contains filtered or unexported fields
}
func NewSourcePool ¶
func NewSourcePool(log log.StdLogger) *SourcePool
func (*SourcePool) Insert ¶
func (s *SourcePool) Insert(ps *PubSubSource)
func (*SourcePool) Remove ¶
func (s *SourcePool) Remove(sourceId string)
func (*SourcePool) Stop ¶
func (s *SourcePool) Stop()
Click to show internal directories.
Click to hide internal directories.