Documentation
¶
Index ¶
- Constants
- func NewCollector(connSet *ConnSet) prometheus.Collector
- type Client
- type Conn
- type ConnSet
- type DeadlineReadWriteCloser
- type DeadlineReader
- type DeadlineReaderWriter
- type DeadlineWriter
- type ListenFunc
- type Listeners
- func (p *Listeners) GetNetAddressMapping(brokerHost string, brokerPort int32) (listenerHost string, listenerPort int32, err error)
- func (p *Listeners) ListenDynamicInstance(brokerAddress string) (string, int32, error)
- func (p *Listeners) ListenInstances(cfgs []config.ListenerConfig) (<-chan Conn, error)
- type ProcessorConfig
- type SASLPlainAuth
- type TCPConnOptions
Constants ¶
View Source
const (
SASLPlain = "PLAIN"
)
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(connSet *ConnSet) prometheus.Collector
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a type to handle connecting to a Server. All fields are required unless otherwise specified.
func NewClient ¶
func NewClient(conns *ConnSet, c *config.Config, netAddressMappingFunc config.NetAddressMappingFunc, passwordAuthenticator shared.PasswordAuthenticator) (*Client, error)
type ConnSet ¶
A ConnSet tracks net.Conns associated with a provided ID.
func (*ConnSet) Add ¶
Add saves the provided conn and associates it with the given string identifier.
type DeadlineReadWriteCloser ¶
type DeadlineReader ¶
type DeadlineReaderWriter ¶
type DeadlineReaderWriter interface { DeadlineReader DeadlineWriter }
type DeadlineWriter ¶
type ListenFunc ¶
type ListenFunc func(cfg config.ListenerConfig) (l net.Listener, err error)
type Listeners ¶
type Listeners struct {
// contains filtered or unexported fields
}
func (*Listeners) GetNetAddressMapping ¶
func (*Listeners) ListenDynamicInstance ¶
func (*Listeners) ListenInstances ¶
func (p *Listeners) ListenInstances(cfgs []config.ListenerConfig) (<-chan Conn, error)
type ProcessorConfig ¶
type ProcessorConfig struct { MaxOpenRequests int NetAddressMappingFunc config.NetAddressMappingFunc RequestBufferSize int ResponseBufferSize int WriteTimeout time.Duration ReadTimeout time.Duration ListenerAuth bool ListenerAuthenticator shared.PasswordAuthenticator ForbiddenApiKeys map[int16]struct{} }
type SASLPlainAuth ¶
type SASLPlainAuth struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.