Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interest ¶
type InterestTracker ¶
type InterestTracker struct {
Interests *Interests
OTELMeter metric.Meter
NumberOfInterests metric.Int64Gauge
// contains filtered or unexported fields
}
InterestTracker tracks hosts and their discovered WebSocket and request/reply connection handlers.
func NewInterestTracker ¶
func NewInterestTracker(nc *nats.Conn, opts ...InterestTrackerOption) *InterestTracker
func (*InterestTracker) Run ¶
func (it *InterestTracker) Run() error
func (*InterestTracker) ValidRequest ¶
func (it *InterestTracker) ValidRequest(req http.Request) bool
type InterestTrackerOption ¶ added in v0.0.8
type InterestTrackerOption func(*InterestTracker)
func WithInterestSubject ¶ added in v0.0.8
func WithInterestSubject(subject string) InterestTrackerOption
func WithOTELMeter ¶ added in v0.0.8
func WithOTELMeter(meter metric.Meter) InterestTrackerOption
Click to show internal directories.
Click to hide internal directories.