Documentation ¶
Index ¶
- type CPUInfo
- type DeviceMap
- type Info
- type MemoryInfo
- type MerlinClient
- func (mc *MerlinClient) Login(ctx context.Context) error
- func (mc *MerlinClient) Logout() error
- func (mc *MerlinClient) Loop(interval time.Duration, fn func(info *Info))
- func (mc *MerlinClient) OSInfo(ctx context.Context) (*OSInfo, error)
- func (mc *MerlinClient) Temperature(ctx context.Context) (map[string]float64, error)
- func (mc *MerlinClient) Uptime(ctx context.Context) (int64, error)
- type OSInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryInfo ¶
type MerlinClient ¶
type MerlinClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(host, username, password string) (*MerlinClient, error)
func (*MerlinClient) Logout ¶ added in v0.0.2
func (mc *MerlinClient) Logout() error
func (*MerlinClient) Loop ¶
func (mc *MerlinClient) Loop(interval time.Duration, fn func(info *Info))
func (*MerlinClient) Temperature ¶
type OSInfo ¶
type OSInfo struct { Memory *MemoryInfo `xml:"mem_info"` CPU []CPUInfo `xml:"cpu_info>cpu"` }
Click to show internal directories.
Click to hide internal directories.