Documentation ¶
Index ¶
Constants ¶
View Source
const ( OffsetNewest = "newest" OffsetOldest = "oldest" )
Initial offset key values
View Source
const ( BrokersKey = "brokers" GroupKey = "group" VersionKey = "version" InitialOffsetKey = "initial-offset" ConnectionTimeoutKey = "connection-timeout" )
These const's contain the connection string keys to different values
Variables ¶
View Source
var (
DefaultConnectionTimeout = 5 * time.Second
)
Default config value's
Functions ¶
func ValidateConnectionKeyVal ¶
func ValidateConnectionKeyVal(values ConnectionMap) error
ValidateConnectionKeyVal validates if all required valyues are set in the given connectionmap
Types ¶
type Config ¶
type Config struct { Brokers []string Group string Version sarama.KafkaVersion InitialOffset int64 ConnectionTimeout time.Duration }
Config contains all the plausible configuration options
func NewConfig ¶
func NewConfig(values ConnectionMap) (Config, error)
NewConfig constructs a Config from the given connection map
type ConnectionMap ¶
ConnectionMap contains the connectionstring as a key/value map
func ParseConnectionstring ¶
func ParseConnectionstring(connectionstring string) ConnectionMap
ParseConnectionstring parses the given connectionstring and returns a map with all key/values
type Dialect ¶
type Dialect struct { Connection Config Config *sarama.Config // contains filtered or unexported fields }
Dialect represents the kafka dialect
func NewDialect ¶
NewDialect initializes and constructs a new Kafka dialect
Click to show internal directories.
Click to hide internal directories.