Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModes = []Mode{NormalMode, ProxyMode, DiffNormalMode, DiffProxyMode}
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener main data object.
func NewListener ¶
func NewListener(opts *NewListenerOpts) *Listener
NewListener returns a new listener, configured by the NewListenerOpts argument.
type Mode ¶
type Mode string
const ( // NormalMode only handles requests. NormalMode Mode = "normal" // ProxyMode only proxies requests to another wire protocol compatible service. ProxyMode Mode = "proxy" // DiffNormalMode both handles requests and proxies them, then logs the diff. // Only the FerretDB response is sent to the client. DiffNormalMode Mode = "diff-normal" // DiffProxyMode both handles requests and proxies them, then logs the diff. // Only the proxy response is sent to the client. DiffProxyMode Mode = "diff-proxy" )
Click to show internal directories.
Click to hide internal directories.