Versions in this module Expand all Collapse all v0 v0.1.0 Jun 3, 2026 Changes in this version + func Handler(backend Backend) http.Handler + type Backend interface + CPUInfo func(context.Context) ([]Row, error) + Connections func(context.Context) ([]Row, error) + DiskIO func(context.Context) ([]Row, error) + Disks func(context.Context) ([]Row, error) + Metrics func(context.Context) (map[string]any, error) + Networks func(context.Context) ([]Row, error) + Overview func(context.Context) (map[string]any, error) + Processes func(context.Context) ([]Row, error) + Sensors func(context.Context) ([]Row, error) + Services func(context.Context) ([]Row, error) + Users func(context.Context) ([]Row, error) + type Local struct + func NewLocal(opts Options) *Local + func (l *Local) CPUInfo(ctx context.Context) ([]Row, error) + func (l *Local) Connections(ctx context.Context) ([]Row, error) + func (l *Local) DiskIO(ctx context.Context) ([]Row, error) + func (l *Local) Disks(ctx context.Context) ([]Row, error) + func (l *Local) Metrics(ctx context.Context) (map[string]any, error) + func (l *Local) Networks(ctx context.Context) ([]Row, error) + func (l *Local) Overview(ctx context.Context) (map[string]any, error) + func (l *Local) Processes(ctx context.Context) ([]Row, error) + func (l *Local) Sensors(ctx context.Context) ([]Row, error) + func (l *Local) Services(ctx context.Context) ([]Row, error) + func (l *Local) Users(ctx context.Context) ([]Row, error) + type Options struct + ConnectionLimit int + ProcessLimit int + type Remote struct + func NewRemote(base string, client *http.Client) *Remote + func (r *Remote) CPUInfo(ctx context.Context) ([]Row, error) + func (r *Remote) Connections(ctx context.Context) ([]Row, error) + func (r *Remote) DiskIO(ctx context.Context) ([]Row, error) + func (r *Remote) Disks(ctx context.Context) ([]Row, error) + func (r *Remote) Metrics(ctx context.Context) (map[string]any, error) + func (r *Remote) Networks(ctx context.Context) ([]Row, error) + func (r *Remote) Overview(ctx context.Context) (map[string]any, error) + func (r *Remote) Processes(ctx context.Context) ([]Row, error) + func (r *Remote) Sensors(ctx context.Context) ([]Row, error) + func (r *Remote) Services(ctx context.Context) ([]Row, error) + func (r *Remote) Users(ctx context.Context) ([]Row, error) + type Row map[string]any