Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultPreparedCache ¶
func NewDefaultPreparedCache(size int) (proxycore.PreparedCache, error)
NewDefaultPreparedCache creates a new default prepared cache capping the max item capacity to `size`.
Types ¶
type Config ¶
type Config struct {
Version primitive.ProtocolVersion
MaxVersion primitive.ProtocolVersion
Auth proxycore.Authenticator
Resolver proxycore.EndpointResolver
ReconnectPolicy proxycore.ReconnectPolicy
NumConns int
Logger *zap.Logger
HeartBeatInterval time.Duration
IdleTimeout time.Duration
// PreparedCache a cache that stores prepared queries. If not set it uses the default implementation with a max
// capacity of ~100MB.
PreparedCache proxycore.PreparedCache
}
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.