usage

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleData

func HandleData(deps Dependencies, data []byte)

func HandleRequest

func HandleRequest(deps Dependencies, reply string, data []byte)

func RequestAll

func RequestAll(deps Dependencies, req core.UsageRequest, timeout time.Duration, subject string) ([]core.UsageRecord, error)

Types

type Dependencies

type Dependencies struct {
	State               *core.NodeState
	Publish             func(subject string, data []byte) error
	PublishMsgWithReply func(subject, reply string, data []byte) error
	Subscribe           func(subject string, cb func(*nats.Msg)) (*nats.Subscription, error)
	CountActiveDns      func() int
	MarkNodeHeard       func(string)
	UsageDataSubject    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL