Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Version is the current version of the app, generated at build time
Version = "unknown"
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Http struct {
ListenAddress string
MetricsPath string
HealthPath string
Disable bool
}
Debug struct {
ListenAddress string
DebugPath string
Enabled bool
}
Log struct {
Format string
Level string
}
Proxy struct {
DefaultListenerIP string
BootstrapServers []ListenerConfig
ExternalServers []ListenerConfig
DisableDynamicListeners bool
RequestBufferSize int
ResponseBufferSize int
ListenerReadBufferSize int // SO_RCVBUF
ListenerWriteBufferSize int // SO_SNDBUF
ListenerKeepAlive time.Duration
TLS struct {
Enable bool
ListenerCertFile string
ListenerKeyFile string
ListenerKeyPassword string
CAChainCertFile string
ListenerCipherSuites []string
ListenerCurvePreferences []string
}
}
Auth struct {
Local struct {
Enable bool
Command string
Mechanism string
Parameters []string
LogLevel string
Timeout time.Duration
}
Gateway struct {
Client struct {
Enable bool
Method string
Magic uint64
Command string
Parameters []string
LogLevel string
Timeout time.Duration
}
Server struct {
Enable bool
Method string
Magic uint64
Command string
Parameters []string
LogLevel string
Timeout time.Duration
}
}
}
Kafka struct {
ClientID string
MaxOpenRequests int
ForbiddenApiKeys []int
DialTimeout time.Duration // How long to wait for the initial connection.
WriteTimeout time.Duration // How long to wait for a request.
ReadTimeout time.Duration // How long to wait for a response.
KeepAlive time.Duration
ConnectionReadBufferSize int // SO_RCVBUF
ConnectionWriteBufferSize int // SO_SNDBUF
TLS struct {
Enable bool
InsecureSkipVerify bool
ClientCertFile string
ClientKeyFile string
ClientKeyPassword string
CAChainCertFile string
}
SASL struct {
Enable bool
Username string
Password string
JaasConfigFile string
Plugin struct {
Enable bool
Command string
Mechanism string
Parameters []string
LogLevel string
Timeout time.Duration
}
}
}
ForwardProxy struct {
Url string
Scheme string
Address string
Username string
Password string
}
}
func (*Config) InitBootstrapServers ¶
func (*Config) InitExternalServers ¶
func (*Config) InitSASLCredentials ¶
type JaasCredentials ¶
func NewJaasCredentialFromFile ¶
func NewJaasCredentialFromFile(filename string) (*JaasCredentials, error)
func NewJaasCredentials ¶
func NewJaasCredentials(s string) (*JaasCredentials, error)
type ListenerConfig ¶
Click to show internal directories.
Click to hide internal directories.