Documentation ¶
Index ¶
Constants ¶
View Source
const ConsumerGroupIDKey string = "group.id"
View Source
const ConsumerOffsetResetKey string = "auto.offset.reset"
View Source
const ConsumerQueuedMinMessages string = "queued.min.messages"
View Source
const EnableAutoCommit string = "enable.auto.commit"
View Source
const KafkaBootstrapServerKey string = "bootstrap.servers"
View Source
const LibrdStatisticsIntervalMs string = "statistics.interval.ms"
View Source
const ProduceRequestRequiredAcks string = "request.required.acks"
View Source
const ProducerBatchNumMessages string = "batch.num.messages"
View Source
const ProducerQueueBufferingMaxMessages string = "queue.buffering.max.messages"
View Source
const SSLCALocation string = "ssl.ca.location"
View Source
const SSLCertLocation string = "ssl.certificate.location"
View Source
const SSLCertificateLocation string = "ssl.certificate.location"
View Source
const SSLKeyLocation string = "ssl.key.location"
View Source
const SSLKeyPassword string = "ssl.key.password"
View Source
const SecurityProtocol string = "security.protocol"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Producer Consumer Config Reporter Store LibrdConfigs Jaeger ProtoParser }
func App ¶
func App() Application
func (Application) DevEnvironment ¶
func (a Application) DevEnvironment() bool
func (Application) LogLevel ¶
func (a Application) LogLevel() string
func (Application) RunDuration ¶
func (a Application) RunDuration() time.Duration
type Consumer ¶
type Consumer struct { // TODO: remove tags and load with split words while processing Enabled bool `default:"true"` Topic string `default:"kafqa_test" envconfig:"KAFKA_TOPIC"` Concurrency int `default:"20"` KafkaBrokers string `split_words:"true"` GroupID string `split_words:"true" default:"kafqa_test_consumer"` OffsetReset string `split_words:"true" default:"latest"` PollTimeoutMs int64 `split_words:"true" default:"500"` SecurityProtocol string `split_words:"true" default:"PLAINTEXT"` EnableAutoCommit bool `split_words:"true" default:"true"` WorkerDelayMs int `split_words:"true" default:"0"` LibrdConfigs LibrdConfigs // contains filtered or unexported fields }
func (Consumer) KafkaConfig ¶
func (Consumer) MessageLoopDelay ¶ added in v1.1.8
func (Consumer) PollTimeout ¶
type Jaeger ¶ added in v1.1.4
type Jaeger struct { Disabled bool `default:"true"` ServiceName string `split_words:"true" default:"kafqa"` ReporterLogSpans bool `split_words:"true" default:"false"` SamplerType string `split_words:"true" default:"const"` SamplerParam float64 `split_words:"true" default:"1"` AgentPort int `split_words:"true" default:"6831"` AgentHost string `split_words:"true" default:"localhost"` }
func (Jaeger) AgentHostPort ¶ added in v1.1.7
type LibrdConfigs ¶ added in v1.1.1
type LibrdConfigs struct { Enabled bool `default:"false"` QueueBufferingMaxMessage int `split_words:"true" default:"100000"` BatchNumMessages int `split_words:"true" default:"10000"` QueuedMinMessages int `split_words:"true" default:"10000"` RequestRequiredAcks int `split_words:"true" default:"1"` StatisticsIntervalMs int `split_words:"true" default:"500"` }
type Producer ¶
type Producer struct { Enabled bool `default:"true"` Topic string `default:"kafqa_test" envconfig:"KAFKA_TOPIC"` Concurrency int `default:"100"` TotalMessages int64 `split_words:"true" default:"10000"` KafkaBrokers string `split_words:"true"` FlushTimeoutMs int `split_words:"true" default:"2000"` SecurityProtocol string `split_words:"true" default:"PLAINTEXT"` DelayMs int `split_words:"true" default:"1000"` WorkerDelayMs int `split_words:"true" default:"50"` Acks int `default:"1"` Librdconfigs LibrdConfigs ClusterName string `envconfig:"KAFKA_CLUSTER"` // contains filtered or unexported fields }
func (Producer) KafkaConfig ¶
type Prometheus ¶
type Prometheus struct { Enabled bool `default:"false"` Port int `default:"9999"` PodName string `envconfig:"POD_NAME"` Deployment string `envconfig:"DEPLOYMENT"` }
func (Prometheus) BindPort ¶
func (p Prometheus) BindPort() string
type ProtoParser ¶ added in v1.1.6
type Reporter ¶
type Reporter struct { Prometheus Statsd PProf }
Click to show internal directories.
Click to hide internal directories.