gogofast

package
v0.0.0-...-9074d79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gogofast is a generated protocol buffer package.

It is generated from these files:

data.proto

It has these top-level messages:

GoGoFastBasicMemInfo
GoGoFastMemInfo
GoGoFastMessage
GoGoFastRedditAccount
GoGoFastAccountData
GoGoFastCPUInfo
GoGoFastCPU

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthData = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowData   = fmt.Errorf("proto: integer overflow")
)

Functions

func BenchBasicMemInfo

func BenchBasicMemInfo() []benchutil.Bench

BenchBasicMemInfo runs the BasicMemInfo benches for Marshal/Unmarshal.

func BenchCPUInfo

func BenchCPUInfo(l int) []benchutil.Bench

BenchCPUInfo runs the CPUInfo benches for Marshal/Unmarshal.

func BenchMemInfo

func BenchMemInfo() []benchutil.Bench

BenchMemInfo runs the MemInfo benches for Marshal/Unmarshal.

func BenchMessage

func BenchMessage(l int) []benchutil.Bench

BenchMessage runs the Message benches for Marshal/Unmarshal.

func BenchRedditAccount

func BenchRedditAccount() []benchutil.Bench

BenchmarkRedditAccount runs the RedditAccount benches for Marshal/Unmarshal.

Types

type GoGoFastAccountData

type GoGoFastAccountData struct {
	CommentKarma int64  `protobuf:"varint,1,opt,name=CommentKarma,json=commentKarma,proto3" json:"CommentKarma,omitempty"`
	HasMail      bool   `protobuf:"varint,2,opt,name=HasMail,json=hasMail,proto3" json:"HasMail,omitempty"`
	HasModMail   bool   `protobuf:"varint,3,opt,name=HasModMail,json=hasModMail,proto3" json:"HasModMail,omitempty"`
	ID           string `protobuf:"bytes,4,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
	InboxCount   int64  `protobuf:"varint,5,opt,name=InboxCount,json=inboxCount,proto3" json:"InboxCount,omitempty"`
	IsFriend     bool   `protobuf:"varint,6,opt,name=IsFriend,json=isFriend,proto3" json:"IsFriend,omitempty"`
	IsGold       bool   `protobuf:"varint,7,opt,name=IsGold,json=isGold,proto3" json:"IsGold,omitempty"`
	LinkKarma    int64  `protobuf:"varint,8,opt,name=LinkKarma,json=linkKarma,proto3" json:"LinkKarma,omitempty"`
	ModHash      string `protobuf:"bytes,9,opt,name=ModHash,json=modHash,proto3" json:"ModHash,omitempty"`
	Name         string `protobuf:"bytes,10,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	Over18       bool   `protobuf:"varint,11,opt,name=Over18,json=over18,proto3" json:"Over18,omitempty"`
}

func (*GoGoFastAccountData) Descriptor

func (*GoGoFastAccountData) Descriptor() ([]byte, []int)

func (*GoGoFastAccountData) Marshal

func (m *GoGoFastAccountData) Marshal() (data []byte, err error)

func (*GoGoFastAccountData) MarshalTo

func (m *GoGoFastAccountData) MarshalTo(data []byte) (int, error)

func (*GoGoFastAccountData) ProtoMessage

func (*GoGoFastAccountData) ProtoMessage()

func (*GoGoFastAccountData) Reset

func (m *GoGoFastAccountData) Reset()

func (*GoGoFastAccountData) Size

func (m *GoGoFastAccountData) Size() (n int)

func (*GoGoFastAccountData) String

func (m *GoGoFastAccountData) String() string

func (*GoGoFastAccountData) Unmarshal

func (m *GoGoFastAccountData) Unmarshal(data []byte) error

type GoGoFastBasicMemInfo

type GoGoFastBasicMemInfo struct {
	MemTotal     int64 `protobuf:"varint,1,opt,name=MemTotal,json=memTotal,proto3" json:"MemTotal,omitempty"`
	MemFree      int64 `protobuf:"varint,2,opt,name=MemFree,json=memFree,proto3" json:"MemFree,omitempty"`
	MemAvailable int64 `protobuf:"varint,3,opt,name=MemAvailable,json=memAvailable,proto3" json:"MemAvailable,omitempty"`
	Buffers      int64 `protobuf:"varint,4,opt,name=Buffers,json=buffers,proto3" json:"Buffers,omitempty"`
	Cached       int64 `protobuf:"varint,5,opt,name=Cached,json=cached,proto3" json:"Cached,omitempty"`
	SwapCached   int64 `protobuf:"varint,6,opt,name=SwapCached,json=swapCached,proto3" json:"SwapCached,omitempty"`
	SwapTotal    int64 `protobuf:"varint,7,opt,name=SwapTotal,json=swapTotal,proto3" json:"SwapTotal,omitempty"`
	SwapFree     int64 `protobuf:"varint,8,opt,name=SwapFree,json=swapFree,proto3" json:"SwapFree,omitempty"`
}

func PrepareBasicMemInfoData

func PrepareBasicMemInfoData(data []shared.ShBasicMemInfo) []GoGoFastBasicMemInfo

PrepareBasicMemInfoData generates the protobuf version of the data.

func (*GoGoFastBasicMemInfo) Descriptor

func (*GoGoFastBasicMemInfo) Descriptor() ([]byte, []int)

func (*GoGoFastBasicMemInfo) Marshal

func (m *GoGoFastBasicMemInfo) Marshal() (data []byte, err error)

func (*GoGoFastBasicMemInfo) MarshalTo

func (m *GoGoFastBasicMemInfo) MarshalTo(data []byte) (int, error)

func (*GoGoFastBasicMemInfo) ProtoMessage

func (*GoGoFastBasicMemInfo) ProtoMessage()

func (*GoGoFastBasicMemInfo) Reset

func (m *GoGoFastBasicMemInfo) Reset()

func (*GoGoFastBasicMemInfo) Size

func (m *GoGoFastBasicMemInfo) Size() (n int)

func (*GoGoFastBasicMemInfo) String

func (m *GoGoFastBasicMemInfo) String() string

func (*GoGoFastBasicMemInfo) Unmarshal

func (m *GoGoFastBasicMemInfo) Unmarshal(data []byte) error

type GoGoFastCPU

type GoGoFastCPU struct {
	Processor       int32   `protobuf:"varint,1,opt,name=Processor,json=processor,proto3" json:"Processor,omitempty"`
	VendorID        string  `protobuf:"bytes,2,opt,name=VendorID,json=vendorID,proto3" json:"VendorID,omitempty"`
	CPUFamily       string  `protobuf:"bytes,3,opt,name=CPUFamily,json=cPUFamily,proto3" json:"CPUFamily,omitempty"`
	Model           string  `protobuf:"bytes,4,opt,name=Model,json=model,proto3" json:"Model,omitempty"`
	ModelName       string  `protobuf:"bytes,5,opt,name=ModelName,json=modelName,proto3" json:"ModelName,omitempty"`
	Stepping        string  `protobuf:"bytes,6,opt,name=Stepping,json=stepping,proto3" json:"Stepping,omitempty"`
	Microcode       string  `protobuf:"bytes,7,opt,name=Microcode,json=microcode,proto3" json:"Microcode,omitempty"`
	CPUMHz          float32 `protobuf:"fixed32,8,opt,name=CPUMHz,json=cPUMHz,proto3" json:"CPUMHz,omitempty"`
	CacheSize       string  `protobuf:"bytes,9,opt,name=CacheSize,json=cacheSize,proto3" json:"CacheSize,omitempty"`
	PhysicalID      int32   `protobuf:"varint,10,opt,name=PhysicalID,json=physicalID,proto3" json:"PhysicalID,omitempty"`
	Siblings        int32   `protobuf:"varint,11,opt,name=Siblings,json=siblings,proto3" json:"Siblings,omitempty"`
	CoreID          int32   `protobuf:"varint,12,opt,name=CoreID,json=coreID,proto3" json:"CoreID,omitempty"`
	CPUCores        int32   `protobuf:"varint,13,opt,name=CPUCores,json=cPUCores,proto3" json:"CPUCores,omitempty"`
	ApicID          int32   `protobuf:"varint,14,opt,name=ApicID,json=apicID,proto3" json:"ApicID,omitempty"`
	InitialApicID   int32   `protobuf:"varint,15,opt,name=InitialApicID,json=initialApicID,proto3" json:"InitialApicID,omitempty"`
	FPU             string  `protobuf:"bytes,16,opt,name=FPU,json=fPU,proto3" json:"FPU,omitempty"`
	FPUException    string  `protobuf:"bytes,17,opt,name=FPUException,json=fPUException,proto3" json:"FPUException,omitempty"`
	CPUIDLevel      string  `protobuf:"bytes,18,opt,name=CPUIDLevel,json=cPUIDLevel,proto3" json:"CPUIDLevel,omitempty"`
	WP              string  `protobuf:"bytes,19,opt,name=WP,json=wP,proto3" json:"WP,omitempty"`
	Flags           string  `protobuf:"bytes,21,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"`
	BogoMIPS        float32 `protobuf:"fixed32,22,opt,name=BogoMIPS,json=bogoMIPS,proto3" json:"BogoMIPS,omitempty"`
	CLFlushSize     string  `protobuf:"bytes,23,opt,name=CLFlushSize,json=cLFlushSize,proto3" json:"CLFlushSize,omitempty"`
	CacheAlignment  string  `protobuf:"bytes,24,opt,name=CacheAlignment,json=cacheAlignment,proto3" json:"CacheAlignment,omitempty"`
	AddressSizes    string  `protobuf:"bytes,25,opt,name=AddressSizes,json=addressSizes,proto3" json:"AddressSizes,omitempty"`
	PowerManagement string  `protobuf:"bytes,26,opt,name=PowerManagement,json=powerManagement,proto3" json:"PowerManagement,omitempty"`
}

func (*GoGoFastCPU) Descriptor

func (*GoGoFastCPU) Descriptor() ([]byte, []int)

func (*GoGoFastCPU) Marshal

func (m *GoGoFastCPU) Marshal() (data []byte, err error)

func (*GoGoFastCPU) MarshalTo

func (m *GoGoFastCPU) MarshalTo(data []byte) (int, error)

func (*GoGoFastCPU) ProtoMessage

func (*GoGoFastCPU) ProtoMessage()

func (*GoGoFastCPU) Reset

func (m *GoGoFastCPU) Reset()

func (*GoGoFastCPU) Size

func (m *GoGoFastCPU) Size() (n int)

func (*GoGoFastCPU) String

func (m *GoGoFastCPU) String() string

func (*GoGoFastCPU) Unmarshal

func (m *GoGoFastCPU) Unmarshal(data []byte) error

type GoGoFastCPUInfo

type GoGoFastCPUInfo struct {
	CPUs []*GoGoFastCPU `protobuf:"bytes,1,rep,name=CPUs,json=cPUs" json:"CPUs,omitempty"`
}

func PrepareCPUInfoData

func PrepareCPUInfoData(data []shared.ShCPUInfo) []GoGoFastCPUInfo

PrepareCPUInfoData generates the ProtobufV3 version of the data.

func (*GoGoFastCPUInfo) Descriptor

func (*GoGoFastCPUInfo) Descriptor() ([]byte, []int)

func (*GoGoFastCPUInfo) GetCPUs

func (m *GoGoFastCPUInfo) GetCPUs() []*GoGoFastCPU

func (*GoGoFastCPUInfo) Marshal

func (m *GoGoFastCPUInfo) Marshal() (data []byte, err error)

func (*GoGoFastCPUInfo) MarshalTo

func (m *GoGoFastCPUInfo) MarshalTo(data []byte) (int, error)

func (*GoGoFastCPUInfo) ProtoMessage

func (*GoGoFastCPUInfo) ProtoMessage()

func (*GoGoFastCPUInfo) Reset

func (m *GoGoFastCPUInfo) Reset()

func (*GoGoFastCPUInfo) Size

func (m *GoGoFastCPUInfo) Size() (n int)

func (*GoGoFastCPUInfo) String

func (m *GoGoFastCPUInfo) String() string

func (*GoGoFastCPUInfo) Unmarshal

func (m *GoGoFastCPUInfo) Unmarshal(data []byte) error

type GoGoFastMemInfo

type GoGoFastMemInfo struct {
	MemTotal          int64 `protobuf:"varint,1,opt,name=MemTotal,json=memTotal,proto3" json:"MemTotal,omitempty"`
	MemFree           int64 `protobuf:"varint,2,opt,name=MemFree,json=memFree,proto3" json:"MemFree,omitempty"`
	MemAvailable      int64 `protobuf:"varint,3,opt,name=MemAvailable,json=memAvailable,proto3" json:"MemAvailable,omitempty"`
	Buffers           int64 `protobuf:"varint,4,opt,name=Buffers,json=buffers,proto3" json:"Buffers,omitempty"`
	Cached            int64 `protobuf:"varint,5,opt,name=Cached,json=cached,proto3" json:"Cached,omitempty"`
	SwapCached        int64 `protobuf:"varint,6,opt,name=SwapCached,json=swapCached,proto3" json:"SwapCached,omitempty"`
	Active            int64 `protobuf:"varint,7,opt,name=Active,json=active,proto3" json:"Active,omitempty"`
	Inactive          int64 `protobuf:"varint,8,opt,name=Inactive,json=inactive,proto3" json:"Inactive,omitempty"`
	ActiveAnon        int64 `protobuf:"varint,9,opt,name=ActiveAnon,json=activeAnon,proto3" json:"ActiveAnon,omitempty"`
	InactiveAnon      int64 `protobuf:"varint,10,opt,name=InactiveAnon,json=inactiveAnon,proto3" json:"InactiveAnon,omitempty"`
	ActiveFile        int64 `protobuf:"varint,11,opt,name=ActiveFile,json=activeFile,proto3" json:"ActiveFile,omitempty"`
	InactiveFile      int64 `protobuf:"varint,12,opt,name=InactiveFile,json=inactiveFile,proto3" json:"InactiveFile,omitempty"`
	Unevictable       int64 `protobuf:"varint,13,opt,name=Unevictable,json=unevictable,proto3" json:"Unevictable,omitempty"`
	Mlocked           int64 `protobuf:"varint,14,opt,name=Mlocked,json=mlocked,proto3" json:"Mlocked,omitempty"`
	SwapTotal         int64 `protobuf:"varint,15,opt,name=SwapTotal,json=swapTotal,proto3" json:"SwapTotal,omitempty"`
	SwapFree          int64 `protobuf:"varint,16,opt,name=SwapFree,json=swapFree,proto3" json:"SwapFree,omitempty"`
	Dirty             int64 `protobuf:"varint,17,opt,name=Dirty,json=dirty,proto3" json:"Dirty,omitempty"`
	Writeback         int64 `protobuf:"varint,18,opt,name=Writeback,json=writeback,proto3" json:"Writeback,omitempty"`
	AnonPages         int64 `protobuf:"varint,19,opt,name=AnonPages,json=anonPages,proto3" json:"AnonPages,omitempty"`
	Mapped            int64 `protobuf:"varint,20,opt,name=Mapped,json=mapped,proto3" json:"Mapped,omitempty"`
	Shmem             int64 `protobuf:"varint,21,opt,name=Shmem,json=shmem,proto3" json:"Shmem,omitempty"`
	Slab              int64 `protobuf:"varint,22,opt,name=Slab,json=slab,proto3" json:"Slab,omitempty"`
	SReclaimable      int64 `protobuf:"varint,23,opt,name=SReclaimable,json=sReclaimable,proto3" json:"SReclaimable,omitempty"`
	SUnreclaim        int64 `protobuf:"varint,24,opt,name=SUnreclaim,json=sUnreclaim,proto3" json:"SUnreclaim,omitempty"`
	KernelStack       int64 `protobuf:"varint,25,opt,name=KernelStack,json=kernelStack,proto3" json:"KernelStack,omitempty"`
	NFSUnstable       int64 `protobuf:"varint,26,opt,name=NFSUnstable,json=nFSUnstable,proto3" json:"NFSUnstable,omitempty"`
	Bounce            int64 `protobuf:"varint,27,opt,name=Bounce,json=bounce,proto3" json:"Bounce,omitempty"`
	WritebackTmp      int64 `protobuf:"varint,28,opt,name=WritebackTmp,json=writebackTmp,proto3" json:"WritebackTmp,omitempty"`
	CommitLimit       int64 `protobuf:"varint,29,opt,name=CommitLimit,json=commitLimit,proto3" json:"CommitLimit,omitempty"`
	VmallocTotal      int64 `protobuf:"varint,30,opt,name=VmallocTotal,json=vmallocTotal,proto3" json:"VmallocTotal,omitempty"`
	VmallocUsed       int64 `protobuf:"varint,31,opt,name=VmallocUsed,json=vmallocUsed,proto3" json:"VmallocUsed,omitempty"`
	VmallocChunk      int64 `protobuf:"varint,32,opt,name=VmallocChunk,json=vmallocChunk,proto3" json:"VmallocChunk,omitempty"`
	HardwareCorrupted int64 `protobuf:"varint,33,opt,name=HardwareCorrupted,json=hardwareCorrupted,proto3" json:"HardwareCorrupted,omitempty"`
	AnonHugePages     int64 `protobuf:"varint,34,opt,name=AnonHugePages,json=anonHugePages,proto3" json:"AnonHugePages,omitempty"`
	HugePagesTotal    int64 `protobuf:"varint,35,opt,name=HugePagesTotal,json=hugePagesTotal,proto3" json:"HugePagesTotal,omitempty"`
	HugePagesFree     int64 `protobuf:"varint,36,opt,name=HugePagesFree,json=hugePagesFree,proto3" json:"HugePagesFree,omitempty"`
	HugePagesRsvd     int64 `protobuf:"varint,37,opt,name=HugePagesRsvd,json=hugePagesRsvd,proto3" json:"HugePagesRsvd,omitempty"`
	Hugepagesize      int64 `protobuf:"varint,38,opt,name=Hugepagesize,json=hugepagesize,proto3" json:"Hugepagesize,omitempty"`
	DirectMap4K       int64 `protobuf:"varint,39,opt,name=DirectMap4k,json=directMap4k,proto3" json:"DirectMap4k,omitempty"`
	DirectMap2M       int64 `protobuf:"varint,40,opt,name=DirectMap2M,json=directMap2M,proto3" json:"DirectMap2M,omitempty"`
}

func PrepareMemInfoData

func PrepareMemInfoData(data []shared.ShMemInfo) []GoGoFastMemInfo

PrepareMemInfoData generates the protobuf version of the data.

func (*GoGoFastMemInfo) Descriptor

func (*GoGoFastMemInfo) Descriptor() ([]byte, []int)

func (*GoGoFastMemInfo) Marshal

func (m *GoGoFastMemInfo) Marshal() (data []byte, err error)

func (*GoGoFastMemInfo) MarshalTo

func (m *GoGoFastMemInfo) MarshalTo(data []byte) (int, error)

func (*GoGoFastMemInfo) ProtoMessage

func (*GoGoFastMemInfo) ProtoMessage()

func (*GoGoFastMemInfo) Reset

func (m *GoGoFastMemInfo) Reset()

func (*GoGoFastMemInfo) Size

func (m *GoGoFastMemInfo) Size() (n int)

func (*GoGoFastMemInfo) String

func (m *GoGoFastMemInfo) String() string

func (*GoGoFastMemInfo) Unmarshal

func (m *GoGoFastMemInfo) Unmarshal(data []byte) error

type GoGoFastMessage

type GoGoFastMessage 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,proto3" json:"DestID,omitempty"`
	Type   int32  `protobuf:"varint,3,opt,name=Type,json=type,proto3" json:"Type,omitempty"`
	Kind   int32  `protobuf:"varint,4,opt,name=Kind,json=kind,proto3" json:"Kind,omitempty"`
	Data   []byte `protobuf:"bytes,5,opt,name=Data,json=data,proto3" json:"Data,omitempty"`
}

func PrepareMessageData

func PrepareMessageData(data []shared.ShMessage) []GoGoFastMessage

PrepareMessageData generates the protobuf version of the data.

func (*GoGoFastMessage) Descriptor

func (*GoGoFastMessage) Descriptor() ([]byte, []int)

func (*GoGoFastMessage) Marshal

func (m *GoGoFastMessage) Marshal() (data []byte, err error)

func (*GoGoFastMessage) MarshalTo

func (m *GoGoFastMessage) MarshalTo(data []byte) (int, error)

func (*GoGoFastMessage) ProtoMessage

func (*GoGoFastMessage) ProtoMessage()

func (*GoGoFastMessage) Reset

func (m *GoGoFastMessage) Reset()

func (*GoGoFastMessage) Size

func (m *GoGoFastMessage) Size() (n int)

func (*GoGoFastMessage) String

func (m *GoGoFastMessage) String() string

func (*GoGoFastMessage) Unmarshal

func (m *GoGoFastMessage) Unmarshal(data []byte) error

type GoGoFastRedditAccount

type GoGoFastRedditAccount struct {
	ID   string               `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
	Name string               `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	Kind string               `protobuf:"bytes,3,opt,name=Kind,json=kind,proto3" json:"Kind,omitempty"`
	Data *GoGoFastAccountData `protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
}

func PrepareRedditAccountData

func PrepareRedditAccountData(data []shared.ShRedditAccount) []GoGoFastRedditAccount

PrepareRedditAccountData generates the protobuf version of the data.

func (*GoGoFastRedditAccount) Descriptor

func (*GoGoFastRedditAccount) Descriptor() ([]byte, []int)

func (*GoGoFastRedditAccount) GetData

func (*GoGoFastRedditAccount) Marshal

func (m *GoGoFastRedditAccount) Marshal() (data []byte, err error)

func (*GoGoFastRedditAccount) MarshalTo

func (m *GoGoFastRedditAccount) MarshalTo(data []byte) (int, error)

func (*GoGoFastRedditAccount) ProtoMessage

func (*GoGoFastRedditAccount) ProtoMessage()

func (*GoGoFastRedditAccount) Reset

func (m *GoGoFastRedditAccount) Reset()

func (*GoGoFastRedditAccount) Size

func (m *GoGoFastRedditAccount) Size() (n int)

func (*GoGoFastRedditAccount) String

func (m *GoGoFastRedditAccount) String() string

func (*GoGoFastRedditAccount) Unmarshal

func (m *GoGoFastRedditAccount) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL