Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cpu ¶
type Cpu struct { Total uint64 `cbor:"21,keyasint"` Count int `cbor:"22,keyasint"` User uint64 `cbor:"23,keyasint"` Nice uint64 `cbor:"24,keyasint"` System uint64 `cbor:"25,keyasint"` Idle uint64 `cbor:"26,keyasint"` Iowait uint64 `cbor:"27, keyasint"` Irq uint64 `cbor:"28,keyasint"` Softirq uint64 `cbor:"29,keyasint"` Steal uint64 `cbor:"30,keyasint"` Guest uint64 `cbor:"31,keyasint"` GuestNice uint64 `cbor:"32,keyasint"` StatCount int `cbor:"33,keyasint"` }
type PeerLocation ¶
type Service ¶
type Service interface { services.DBService services.GitHubAuth Resolver() Resolver }
type ServiceInfo ¶
type ServiceInfo struct { Type ServiceType Meta map[string]string }
type ServiceType ¶
type ServiceType string
Usage Types
const ( ServiceTypeUnknown ServiceType = "unknown" ServiceTypeHttp ServiceType = "http" ServiceTypeP2P ServiceType = "p2p" ServiceTypeAuth ServiceType = "auth" ServiceTypeSeer ServiceType = "seer" ServiceTypeBilling ServiceType = "billing" ServiceTypeConsole ServiceType = "console" ServiceTypeHoarder ServiceType = "hoarder" ServiceTypeMonkey ServiceType = "monkey" ServiceTypeSubstrate ServiceType = "substrate" ServiceTypePatrick ServiceType = "patrick" ServiceTypeTns ServiceType = "tns" ServiceTypeQ ServiceType = "q" ServiceTypeGateway ServiceType = "gateway" )
TODO: We repeat these string vars every where...
type Services ¶
type Services []ServiceInfo
type Usage ¶
type Usage interface { Beacon(hostname, nodeId, clientNodeId string, signature []byte) UsageBeacon Heartbeat(usage *UsageData, hostname, nodeId, clientNodeId string, signature []byte) (response.Response, error) Announce(services Services, nodeId, clientNodeId string, signature []byte) (response.Response, error) AddService(svrType ServiceType, meta map[string]string) List() ([]string, error) ListServiceId(name string) (response.Response, error) Get(id string) (*UsageReturn, error) }
type UsageBeacon ¶
type UsageBeacon interface {
Start()
}
type UsageReturn ¶
type UsageReturn struct { Id string Name string Type []string Timestamp int UsedMem int TotalMem int FreeMem int TotalCpu int CpuCount int CpuUser int CpuNice int CpuSystem int CpuIdle int CpuIowait int CpuIrq int CpuSoftirq int CpuSteal int CpuGuest int CpuGuestNice int CpuStatCount int Address string TotalDisk int FreeDisk int UsedDisk int AvailableDisk int }
Click to show internal directories.
Click to hide internal directories.