Documentation ¶
Index ¶
- Variables
- func Get(conn *nats.EncodedConn, nkey string, req Request, resp *Response, ...) error
- func GetWithContext(ctx context.Context, conn *nats.EncodedConn, nkey string, req Request, ...) error
- func Init(ctx context.Context) (err error)
- type Disk
- type Load
- type Memory
- type Nix
- type NixOS
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NKey string Claims *jwt.UserClaims )
Functions ¶
func GetWithContext ¶
Types ¶
type Disk ¶
type Disk struct {
Partitions []disk.PartitionStat `json:"partitions,omitempty"`
}
type Memory ¶
type Memory struct { Virtual *mem.VirtualMemoryStat `json:"virtual,omitempty"` Swap *mem.SwapMemoryStat `json:"swap,omitempty"` SwapDevices []*mem.SwapDevice `json:"swapDevices,omitempty"` }
type Response ¶
type Response struct { NKey string `json:"nkey"` Name string `json:"name"` Subject string `json:"subject"` Host *host.InfoStat `json:"host,omitempty"` Nix *Nix `json:"nix,omitempty"` NixOS *NixOS `json:"nixos,omitempty"` Cpus []cpu.InfoStat `json:"cpus,omitempty"` Load *Load `json:"load,omitempty"` Memory *Memory `json:"memory,omitempty"` Disk *Disk `json:"disk,omitempty"` LastSeen time.Time }
Click to show internal directories.
Click to hide internal directories.