Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
data.proto
It has these top-level messages:
BasicMemInfo MemInfo Message RedditAccount AccountData CPUInfo CPU
Index ¶
- func BenchBasicMemInfo() []benchutil.Bench
- func BenchCPUInfo(l int) []benchutil.Bench
- func BenchMemInfo() []benchutil.Bench
- func BenchMessage(l int) []benchutil.Bench
- func BenchRedditAccount() []benchutil.Bench
- type AccountData
- type BasicMemInfo
- type CPU
- type CPUInfo
- type MemInfo
- type Message
- type RedditAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchBasicMemInfo ¶
BenchBasicMemInfo runs the BasicMemInfo benches for Marshal/Unmarshal.
func BenchCPUInfo ¶
BenchCPUInfo runs the CPUInfo benches for Marshal/Unmarshal.
func BenchMemInfo ¶
BenchMemInfo runs the MemInfo benches for Marshal/Unmarshal.
func BenchMessage ¶
BenchMessage runs the Message benches for Marshal/Unmarshal.
func BenchRedditAccount ¶
BenchmarkRedditAccount runs the RedditAccount benches for Marshal/Unmarshal.
Types ¶
type AccountData ¶
type AccountData struct {
CommentKarma int64 `protobuf:"varint,1,opt,name=CommentKarma,json=commentKarma" json:"CommentKarma,omitempty"`
HasMail bool `protobuf:"varint,2,opt,name=HasMail,json=hasMail" json:"HasMail,omitempty"`
HasModMail bool `protobuf:"varint,3,opt,name=HasModMail,json=hasModMail" json:"HasModMail,omitempty"`
ID string `protobuf:"bytes,4,opt,name=ID,json=iD" json:"ID,omitempty"`
InboxCount int64 `protobuf:"varint,5,opt,name=InboxCount,json=inboxCount" json:"InboxCount,omitempty"`
IsFriend bool `protobuf:"varint,6,opt,name=IsFriend,json=isFriend" json:"IsFriend,omitempty"`
IsGold bool `protobuf:"varint,7,opt,name=IsGold,json=isGold" json:"IsGold,omitempty"`
LinkKarma int64 `protobuf:"varint,8,opt,name=LinkKarma,json=linkKarma" json:"LinkKarma,omitempty"`
ModHash string `protobuf:"bytes,9,opt,name=ModHash,json=modHash" json:"ModHash,omitempty"`
Name string `protobuf:"bytes,10,opt,name=Name,json=name" json:"Name,omitempty"`
Over18 bool `protobuf:"varint,11,opt,name=Over18,json=over18" json:"Over18,omitempty"`
}
func (*AccountData) Descriptor ¶
func (*AccountData) Descriptor() ([]byte, []int)
func (*AccountData) ProtoMessage ¶
func (*AccountData) ProtoMessage()
func (*AccountData) Reset ¶
func (m *AccountData) Reset()
func (*AccountData) String ¶
func (m *AccountData) String() string
type BasicMemInfo ¶
type BasicMemInfo struct {
MemTotal int64 `protobuf:"varint,1,opt,name=MemTotal,json=memTotal" json:"MemTotal,omitempty"`
MemFree int64 `protobuf:"varint,2,opt,name=MemFree,json=memFree" json:"MemFree,omitempty"`
MemAvailable int64 `protobuf:"varint,3,opt,name=MemAvailable,json=memAvailable" json:"MemAvailable,omitempty"`
Buffers int64 `protobuf:"varint,4,opt,name=Buffers,json=buffers" json:"Buffers,omitempty"`
Cached int64 `protobuf:"varint,5,opt,name=Cached,json=cached" json:"Cached,omitempty"`
SwapCached int64 `protobuf:"varint,6,opt,name=SwapCached,json=swapCached" json:"SwapCached,omitempty"`
SwapTotal int64 `protobuf:"varint,7,opt,name=SwapTotal,json=swapTotal" json:"SwapTotal,omitempty"`
SwapFree int64 `protobuf:"varint,8,opt,name=SwapFree,json=swapFree" json:"SwapFree,omitempty"`
}
func PrepareBasicMemInfoData ¶
func PrepareBasicMemInfoData(data []shared.ShBasicMemInfo) []BasicMemInfo
PrepareBasicMemInfoData generates the protobuf version of the data.
func (*BasicMemInfo) Descriptor ¶
func (*BasicMemInfo) Descriptor() ([]byte, []int)
func (*BasicMemInfo) ProtoMessage ¶
func (*BasicMemInfo) ProtoMessage()
func (*BasicMemInfo) Reset ¶
func (m *BasicMemInfo) Reset()
func (*BasicMemInfo) String ¶
func (m *BasicMemInfo) String() string
type CPU ¶
type CPU struct {
Processor int32 `protobuf:"varint,1,opt,name=Processor,json=processor" json:"Processor,omitempty"`
VendorID string `protobuf:"bytes,2,opt,name=VendorID,json=vendorID" json:"VendorID,omitempty"`
CPUFamily string `protobuf:"bytes,3,opt,name=CPUFamily,json=cPUFamily" json:"CPUFamily,omitempty"`
Model string `protobuf:"bytes,4,opt,name=Model,json=model" json:"Model,omitempty"`
ModelName string `protobuf:"bytes,5,opt,name=ModelName,json=modelName" json:"ModelName,omitempty"`
Stepping string `protobuf:"bytes,6,opt,name=Stepping,json=stepping" json:"Stepping,omitempty"`
Microcode string `protobuf:"bytes,7,opt,name=Microcode,json=microcode" json:"Microcode,omitempty"`
CPUMHz float32 `protobuf:"fixed32,8,opt,name=CPUMHz,json=cPUMHz" json:"CPUMHz,omitempty"`
CacheSize string `protobuf:"bytes,9,opt,name=CacheSize,json=cacheSize" json:"CacheSize,omitempty"`
PhysicalID int32 `protobuf:"varint,10,opt,name=PhysicalID,json=physicalID" json:"PhysicalID,omitempty"`
Siblings int32 `protobuf:"varint,11,opt,name=Siblings,json=siblings" json:"Siblings,omitempty"`
CoreID int32 `protobuf:"varint,12,opt,name=CoreID,json=coreID" json:"CoreID,omitempty"`
CPUCores int32 `protobuf:"varint,13,opt,name=CPUCores,json=cPUCores" json:"CPUCores,omitempty"`
ApicID int32 `protobuf:"varint,14,opt,name=ApicID,json=apicID" json:"ApicID,omitempty"`
InitialApicID int32 `protobuf:"varint,15,opt,name=InitialApicID,json=initialApicID" json:"InitialApicID,omitempty"`
FPU string `protobuf:"bytes,16,opt,name=FPU,json=fPU" json:"FPU,omitempty"`
FPUException string `protobuf:"bytes,17,opt,name=FPUException,json=fPUException" json:"FPUException,omitempty"`
CPUIDLevel string `protobuf:"bytes,18,opt,name=CPUIDLevel,json=cPUIDLevel" json:"CPUIDLevel,omitempty"`
WP string `protobuf:"bytes,19,opt,name=WP,json=wP" json:"WP,omitempty"`
Flags string `protobuf:"bytes,21,opt,name=Flags,json=flags" json:"Flags,omitempty"`
BogoMIPS float32 `protobuf:"fixed32,22,opt,name=BogoMIPS,json=bogoMIPS" json:"BogoMIPS,omitempty"`
CLFlushSize string `protobuf:"bytes,23,opt,name=CLFlushSize,json=cLFlushSize" json:"CLFlushSize,omitempty"`
CacheAlignment string `protobuf:"bytes,24,opt,name=CacheAlignment,json=cacheAlignment" json:"CacheAlignment,omitempty"`
AddressSizes string `protobuf:"bytes,25,opt,name=AddressSizes,json=addressSizes" json:"AddressSizes,omitempty"`
PowerManagement string `protobuf:"bytes,26,opt,name=PowerManagement,json=powerManagement" json:"PowerManagement,omitempty"`
}
func (*CPU) Descriptor ¶
func (*CPU) ProtoMessage ¶
func (*CPU) ProtoMessage()
type CPUInfo ¶
type CPUInfo struct {
CPUs []*CPU `protobuf:"bytes,1,rep,name=CPUs,json=cPUs" json:"CPUs,omitempty"`
}
func PrepareCPUInfoData ¶
PrepareCPUInfoData generates the ProtobufV3 version of the data.
func (*CPUInfo) Descriptor ¶
func (*CPUInfo) ProtoMessage ¶
func (*CPUInfo) ProtoMessage()
type MemInfo ¶
type MemInfo struct {
MemTotal int64 `protobuf:"varint,1,opt,name=MemTotal,json=memTotal" json:"MemTotal,omitempty"`
MemFree int64 `protobuf:"varint,2,opt,name=MemFree,json=memFree" json:"MemFree,omitempty"`
MemAvailable int64 `protobuf:"varint,3,opt,name=MemAvailable,json=memAvailable" json:"MemAvailable,omitempty"`
Buffers int64 `protobuf:"varint,4,opt,name=Buffers,json=buffers" json:"Buffers,omitempty"`
Cached int64 `protobuf:"varint,5,opt,name=Cached,json=cached" json:"Cached,omitempty"`
SwapCached int64 `protobuf:"varint,6,opt,name=SwapCached,json=swapCached" json:"SwapCached,omitempty"`
Active int64 `protobuf:"varint,7,opt,name=Active,json=active" json:"Active,omitempty"`
Inactive int64 `protobuf:"varint,8,opt,name=Inactive,json=inactive" json:"Inactive,omitempty"`
ActiveAnon int64 `protobuf:"varint,9,opt,name=ActiveAnon,json=activeAnon" json:"ActiveAnon,omitempty"`
InactiveAnon int64 `protobuf:"varint,10,opt,name=InactiveAnon,json=inactiveAnon" json:"InactiveAnon,omitempty"`
ActiveFile int64 `protobuf:"varint,11,opt,name=ActiveFile,json=activeFile" json:"ActiveFile,omitempty"`
InactiveFile int64 `protobuf:"varint,12,opt,name=InactiveFile,json=inactiveFile" json:"InactiveFile,omitempty"`
Unevictable int64 `protobuf:"varint,13,opt,name=Unevictable,json=unevictable" json:"Unevictable,omitempty"`
Mlocked int64 `protobuf:"varint,14,opt,name=Mlocked,json=mlocked" json:"Mlocked,omitempty"`
SwapTotal int64 `protobuf:"varint,15,opt,name=SwapTotal,json=swapTotal" json:"SwapTotal,omitempty"`
SwapFree int64 `protobuf:"varint,16,opt,name=SwapFree,json=swapFree" json:"SwapFree,omitempty"`
Dirty int64 `protobuf:"varint,17,opt,name=Dirty,json=dirty" json:"Dirty,omitempty"`
Writeback int64 `protobuf:"varint,18,opt,name=Writeback,json=writeback" json:"Writeback,omitempty"`
AnonPages int64 `protobuf:"varint,19,opt,name=AnonPages,json=anonPages" json:"AnonPages,omitempty"`
Mapped int64 `protobuf:"varint,20,opt,name=Mapped,json=mapped" json:"Mapped,omitempty"`
Shmem int64 `protobuf:"varint,21,opt,name=Shmem,json=shmem" json:"Shmem,omitempty"`
Slab int64 `protobuf:"varint,22,opt,name=Slab,json=slab" json:"Slab,omitempty"`
SReclaimable int64 `protobuf:"varint,23,opt,name=SReclaimable,json=sReclaimable" json:"SReclaimable,omitempty"`
SUnreclaim int64 `protobuf:"varint,24,opt,name=SUnreclaim,json=sUnreclaim" json:"SUnreclaim,omitempty"`
KernelStack int64 `protobuf:"varint,25,opt,name=KernelStack,json=kernelStack" json:"KernelStack,omitempty"`
NFSUnstable int64 `protobuf:"varint,26,opt,name=NFSUnstable,json=nFSUnstable" json:"NFSUnstable,omitempty"`
Bounce int64 `protobuf:"varint,27,opt,name=Bounce,json=bounce" json:"Bounce,omitempty"`
WritebackTmp int64 `protobuf:"varint,28,opt,name=WritebackTmp,json=writebackTmp" json:"WritebackTmp,omitempty"`
CommitLimit int64 `protobuf:"varint,29,opt,name=CommitLimit,json=commitLimit" json:"CommitLimit,omitempty"`
VmallocTotal int64 `protobuf:"varint,30,opt,name=VmallocTotal,json=vmallocTotal" json:"VmallocTotal,omitempty"`
VmallocUsed int64 `protobuf:"varint,31,opt,name=VmallocUsed,json=vmallocUsed" json:"VmallocUsed,omitempty"`
VmallocChunk int64 `protobuf:"varint,32,opt,name=VmallocChunk,json=vmallocChunk" json:"VmallocChunk,omitempty"`
HardwareCorrupted int64 `protobuf:"varint,33,opt,name=HardwareCorrupted,json=hardwareCorrupted" json:"HardwareCorrupted,omitempty"`
AnonHugePages int64 `protobuf:"varint,34,opt,name=AnonHugePages,json=anonHugePages" json:"AnonHugePages,omitempty"`
HugePagesTotal int64 `protobuf:"varint,35,opt,name=HugePagesTotal,json=hugePagesTotal" json:"HugePagesTotal,omitempty"`
HugePagesFree int64 `protobuf:"varint,36,opt,name=HugePagesFree,json=hugePagesFree" json:"HugePagesFree,omitempty"`
HugePagesRsvd int64 `protobuf:"varint,37,opt,name=HugePagesRsvd,json=hugePagesRsvd" json:"HugePagesRsvd,omitempty"`
Hugepagesize int64 `protobuf:"varint,38,opt,name=Hugepagesize,json=hugepagesize" json:"Hugepagesize,omitempty"`
DirectMap4K int64 `protobuf:"varint,39,opt,name=DirectMap4k,json=directMap4k" json:"DirectMap4k,omitempty"`
DirectMap2M int64 `protobuf:"varint,40,opt,name=DirectMap2M,json=directMap2M" json:"DirectMap2M,omitempty"`
}
func PrepareMemInfoData ¶
PrepareMemInfoData generates the protobuf version of the data.
func (*MemInfo) Descriptor ¶
func (*MemInfo) ProtoMessage ¶
func (*MemInfo) ProtoMessage()
type Message ¶
type Message struct {
ID []byte `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
DestID uint32 `protobuf:"varint,2,opt,name=DestID,json=destID" json:"DestID,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=Type,json=type" json:"Type,omitempty"`
Kind int32 `protobuf:"varint,4,opt,name=Kind,json=kind" json:"Kind,omitempty"`
Data []byte `protobuf:"bytes,5,opt,name=Data,json=data,proto3" json:"Data,omitempty"`
}
func PrepareMessageData ¶
PrepareMessageData generates the protobuf version of the data.
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type RedditAccount ¶
type RedditAccount struct {
ID string `protobuf:"bytes,1,opt,name=ID,json=iD" json:"ID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,json=name" json:"Name,omitempty"`
Kind string `protobuf:"bytes,3,opt,name=Kind,json=kind" json:"Kind,omitempty"`
Data *AccountData `protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
}
func PrepareRedditAccountData ¶
func PrepareRedditAccountData(data []shared.ShRedditAccount) []RedditAccount
PrepareRedditAccountData generates the protobuf version of the data.
func (*RedditAccount) Descriptor ¶
func (*RedditAccount) Descriptor() ([]byte, []int)
func (*RedditAccount) GetData ¶
func (m *RedditAccount) GetData() *AccountData
func (*RedditAccount) ProtoMessage ¶
func (*RedditAccount) ProtoMessage()
func (*RedditAccount) Reset ¶
func (m *RedditAccount) Reset()
func (*RedditAccount) String ¶
func (m *RedditAccount) String() string