Documentation
¶
Index ¶
- Constants
- type Config
- type Source
- func (k *Source) Category() api.Category
- func (k *Source) Commit(events []api.Event)
- func (k *Source) Config() interface{}
- func (k *Source) Init(context api.Context) error
- func (k *Source) ProductLoop(productFunc api.ProductFunc)
- func (k *Source) Start() error
- func (k *Source) Stop()
- func (k *Source) String() string
- func (k *Source) Type() api.Type
Constants ¶
View Source
const (
Type = "franzKafka"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Brokers []string `yaml:"brokers,omitempty" validate:"required"` Topic string `yaml:"topic,omitempty"` Topics []string `yaml:"topics,omitempty"` GroupId string `yaml:"groupId,omitempty" default:"loggie"` ClientId string `yaml:"clientId,omitempty"` Worker int `yaml:"worker,omitempty" default:"1"` FetchMaxWait time.Duration `yaml:"fetchMaxWait,omitempty"` FetchMaxBytes int32 `yaml:"fetchMaxBytes,omitempty"` FetchMinBytes int32 `yaml:"fetchMinBytes,omitempty"` FetchMaxPartitionBytes int32 `yaml:"fetchMaxPartitionBytes,omitempty"` EnableAutoCommit bool `yaml:"enableAutoCommit,omitempty"` AutoCommitInterval time.Duration `yaml:"autoCommitInterval,omitempty" default:"1s"` AutoOffsetReset string `yaml:"autoOffsetReset,omitempty" default:"latest"` SASL franz.SASL `yaml:"sasl,omitempty"` AddonMeta *bool `yaml:"addonMeta,omitempty" default:"true"` }
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) ProductLoop ¶
func (k *Source) ProductLoop(productFunc api.ProductFunc)
Click to show internal directories.
Click to hide internal directories.