Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = dht.Error{ Code: dht.ErrorCodeProtocolError, Msg: "invalid token", }
View Source
var ErrMethodUnknown = dht.Error{ Code: dht.ErrorCodeMethodUnknown, Msg: "method Unknown", }
View Source
var ErrMissingArguments = dht.Error{ Code: dht.ErrorCodeProtocolError, Msg: "missing arguments", }
View Source
var ErrTooManyRequests = dht.Error{ Code: dht.ErrorCodeGenericError, Msg: "too many requests", }
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { fx.In KTable ktable.Table DiscoveredNodes concurrency.BatchingChannel[ktable.Node] `name:"dht_discovered_nodes"` Logger *zap.SugaredLogger }
type Result ¶
type Result struct { fx.Out Responder Responder QueryDuration prometheus.Collector `group:"prometheus_collectors"` QuerySuccessTotal prometheus.Collector `group:"prometheus_collectors"` QueryErrorTotal prometheus.Collector `group:"prometheus_collectors"` QueryConcurrency prometheus.Collector `group:"prometheus_collectors"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.