Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiDefinition ¶
type Broker ¶
type Broker struct { BrokerID int32 Rack *string // https://docs.confluent.io/platform/current/installation/configuration/broker-configs.html#listeners Listeners []Listener // https://docs.confluent.io/platform/current/installation/configuration/broker-configs.html#advertised-listeners AdvertisedListeners []Listener }
func MockBroker ¶
func MockBroker() *Broker
MockBroker generates a mock object used for unit testing.
type Cluster ¶
type Cluster struct {
ClusterID string
}
func MockCluster ¶
func MockCluster() *Cluster
MockCluster generates a mock object used for unit testing.
type Config ¶
type Config struct { OTProfile OTProfile LogLevel slog.Level LogFormat string DebugServerPort int Broker *Broker Cluster *Cluster Env *viper.Viper Plugin plugins.PluginInterface }
func MockConfig ¶
func MockConfig() *Config
MockConfig generates a mock object used for unit testing.
type Listener ¶
type Listener struct { Host string Port int32 // If the listener name is a security protocol, like PLAINTEXT,SSL,SASL_PLAINTEXT,SASL_SSL, // the name will be set as SecurityProtocol. Otherwise the name should be mapped in listener.security.protocol.map. // see https://docs.confluent.io/platform/current/installation/configuration/broker-configs.html#listener-security-protocol-map. SecurityProtocol SecurityProtocol ListenerName string }
type RegisteredAPI ¶
type SecurityProtocol ¶
type SecurityProtocol int
const ( PLAINTEXT SecurityProtocol = iota SSL SASL_PLAINTEXT SASL_SSL UNDEFINED_SECURITY_PROTOCOL )
func ParseSecurityProtocol ¶
func ParseSecurityProtocol(p string) (SecurityProtocol, bool)
ParseSecurityProtocol parses the string p and returns the corresponding SecurityProtocol enum value and true or UNDEFINED_SECURITY_PROTOCOL and false if the value of string p is not recognized.
Click to show internal directories.
Click to hide internal directories.