Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Self domain.NodeIdentity `json:"self"`
OS string `json:"os"`
PeerCount int `json:"peerCount"`
}
type DiagnosticSource ¶
type DiagnosticSource interface {
Diagnostic(context.Context) (Diagnostic, error)
}
type HTTPReporter ¶
type HTTPReporter struct {
// contains filtered or unexported fields
}
func NewHTTPReporter ¶
func NewHTTPReporter(serverURL string, client *http.Client) (*HTTPReporter, error)
func (*HTTPReporter) Send ¶
func (r *HTTPReporter) Send(ctx context.Context, report domain.ReportEnvelope) (domain.ReportReceipt, error)
type HTTPStatusError ¶
func (*HTTPStatusError) Error ¶
func (e *HTTPStatusError) Error() string
type PeerSnapshot ¶
type PeerSnapshot struct {
Identity domain.NodeIdentity
RxBytes int64
TxBytes int64
Path domain.PathObservation
}
type Reporter ¶
type Reporter interface {
Send(context.Context, domain.ReportEnvelope) (domain.ReportReceipt, error)
}
type Snapshot ¶
type Snapshot struct {
CollectedAt time.Time
Observer domain.NodeIdentity
Peers []PeerSnapshot
}
Click to show internal directories.
Click to hide internal directories.