Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICfg ¶
type APICfg struct { // values BindIP string Port int ZooHosts []string KafkaZnode string //The Zookeeper znode used by Kafka StoreHost string StoreDB string Cert string CertKey string CertificateAuthoritiesDir string ResAuth bool ServiceToken string LogLevel string PushEnabled bool // Whether or not it should communicate over tls with the push server PushTlsEnabled bool // Push server endpoint PushServerHost string // Push server port PushServerPort int // If tls is enabled, whether or not it should verify the push server's certificate VerifyPushServer bool // The token that corresponds to the registered push worker user PushWorkerToken string // Logging output(console,file,syslog etc) LogFacilities []string }
APICfg holds kafka configuration
func (*APICfg) GetBrokerInfo ¶
GetBrokerInfo is a wrapper over GetZooList which retrieves broker information from zookeeper
func (*APICfg) GetZooList ¶
GetZooList gets broker list from zookeeper
func (*APICfg) LoadCAs ¶
LoadCAs builds the CA chain using pem files from the specified directory in the cfg
func (*APICfg) LoadStrJSON ¶
LoadStrJSON Loads configuration from a JSON string
Click to show internal directories.
Click to hide internal directories.