Documentation ¶
Overview ¶
Package repository Date: 2024/3/6 12:53 Author: Amu Description:
Package repository Date: 2024/3/6 12:45 Author: Amu Description:
Index ¶
- Variables
- type HostRepo
- func (h HostRepo) CPUInfo(ctx context.Context) (model.CPU, error)
- func (h HostRepo) CPUUsage(ctx context.Context, args schema.CPUUsageArgs) ([]model.CPU, error)
- func (h HostRepo) DiskInfo(ctx context.Context) ([]model.Disk, error)
- func (h HostRepo) DiskUsage(ctx context.Context, args schema.DiskUsageArgs) ([]model.Disk, error)
- func (h HostRepo) HostInfo(ctx context.Context) (model.Host, error)
- func (h HostRepo) MemInfo(ctx context.Context) (model.Memory, error)
- func (h HostRepo) MemUsage(ctx context.Context, args schema.MemoryUsageArgs) ([]model.Memory, error)
- func (h HostRepo) NetUsage(ctx context.Context, args schema.NetworkUsageArgs) ([]model.Net, error)
- type IHostRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var HostRepoSet = wire.NewSet(NewHostRepo, wire.Bind(new(IHostRepo), new(*HostRepo)))
View Source
var Set = wire.NewSet( HostRepoSet, )
Functions ¶
This section is empty.
Types ¶
type HostRepo ¶
func NewHostRepo ¶
type IHostRepo ¶
type IHostRepo interface { HostInfo(ctx context.Context) (model.Host, error) CPUInfo(ctx context.Context) (model.CPU, error) CPUUsage(ctx context.Context, args schema.CPUUsageArgs) ([]model.CPU, error) MemInfo(ctx context.Context) (model.Memory, error) MemUsage(ctx context.Context, args schema.MemoryUsageArgs) ([]model.Memory, error) DiskInfo(ctx context.Context) ([]model.Disk, error) DiskUsage(ctx context.Context, args schema.DiskUsageArgs) ([]model.Disk, error) NetUsage(ctx context.Context, args schema.NetworkUsageArgs) ([]model.Net, error) }
Click to show internal directories.
Click to hide internal directories.