You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
501 B
Go
22 lines
501 B
Go
4 years ago
|
package kq
|
||
|
|
||
|
import "zero/core/service"
|
||
|
|
||
|
const (
|
||
|
firstOffset = "first"
|
||
|
lastOffset = "last"
|
||
|
)
|
||
|
|
||
|
type KqConf struct {
|
||
|
service.ServiceConf
|
||
|
Brokers []string
|
||
|
Group string
|
||
|
Topic string
|
||
|
Offset string `json:",options=first|last,default=last"`
|
||
|
NumConns int `json:",default=1"`
|
||
|
NumProducers int `json:",default=8"`
|
||
|
NumConsumers int `json:",default=8"`
|
||
|
MinBytes int `json:",default=10240"` // 10K
|
||
|
MaxBytes int `json:",default=10485760"` // 10M
|
||
|
}
|