gofast

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 gofast is a generated protocol buffer package.

It is generated from these files:

data.proto

It has these top-level messages:

GoFastBasicMemInfo
GoFastMemInfo
GoFastMessage
GoFastRedditAccount
GoFastAccountData
GoFastCPUInfo
GoFastCPU

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 GoFastAccountData

type GoFastAccountData 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 (*GoFastAccountData) Descriptor

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

func (*GoFastAccountData) Marshal

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

func (*GoFastAccountData) MarshalTo

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

func (*GoFastAccountData) ProtoMessage

func (*GoFastAccountData) ProtoMessage()

func (*GoFastAccountData) Reset

func (m *GoFastAccountData) Reset()

func (*GoFastAccountData) Size

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

func (*GoFastAccountData) String

func (m *GoFastAccountData) String() string

func (*GoFastAccountData) Unmarshal

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

type GoFastBasicMemInfo

type GoFastBasicMemInfo 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) []GoFastBasicMemInfo

PrepareBasicMemInfoData generates the protobuf version of the data.

func (*GoFastBasicMemInfo) Descriptor

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

func (*GoFastBasicMemInfo) Marshal

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

func (*GoFastBasicMemInfo) MarshalTo

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

func (*GoFastBasicMemInfo) ProtoMessage

func (*GoFastBasicMemInfo) ProtoMessage()

func (*GoFastBasicMemInfo) Reset

func (m *GoFastBasicMemInfo) Reset()

func (*GoFastBasicMemInfo) Size

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

func (*GoFastBasicMemInfo) String

func (m *GoFastBasicMemInfo) String() string

func (*GoFastBasicMemInfo) Unmarshal

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

type GoFastCPU

type GoFastCPU 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 (*GoFastCPU) Descriptor

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

func (*GoFastCPU) Marshal

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

func (*GoFastCPU) MarshalTo

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

func (*GoFastCPU) ProtoMessage

func (*GoFastCPU) ProtoMessage()

func (*GoFastCPU) Reset

func (m *GoFastCPU) Reset()

func (*GoFastCPU) Size

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

func (*GoFastCPU) String

func (m *GoFastCPU) String() string

func (*GoFastCPU) Unmarshal

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

type GoFastCPUInfo

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

func PrepareCPUInfoData

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

PrepareCPUInfoData generates the ProtobufV3 version of the data.

func (*GoFastCPUInfo) Descriptor

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

func (*GoFastCPUInfo) GetCPUs

func (m *GoFastCPUInfo) GetCPUs() []*GoFastCPU

func (*GoFastCPUInfo) Marshal

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

func (*GoFastCPUInfo) MarshalTo

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

func (*GoFastCPUInfo) ProtoMessage

func (*GoFastCPUInfo) ProtoMessage()

func (*GoFastCPUInfo) Reset

func (m *GoFastCPUInfo) Reset()

func (*GoFastCPUInfo) Size

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

func (*GoFastCPUInfo) String

func (m *GoFastCPUInfo) String() string

func (*GoFastCPUInfo) Unmarshal

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

type GoFastMemInfo

type GoFastMemInfo 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) []GoFastMemInfo

PrepareMemInfoData generates the protobuf version of the data.

func (*GoFastMemInfo) Descriptor

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

func (*GoFastMemInfo) Marshal

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

func (*GoFastMemInfo) MarshalTo

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

func (*GoFastMemInfo) ProtoMessage

func (*GoFastMemInfo) ProtoMessage()

func (*GoFastMemInfo) Reset

func (m *GoFastMemInfo) Reset()

func (*GoFastMemInfo) Size

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

func (*GoFastMemInfo) String

func (m *GoFastMemInfo) String() string

func (*GoFastMemInfo) Unmarshal

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

type GoFastMessage

type GoFastMessage 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) []GoFastMessage

PrepareMessageData generates the protobuf version of the data.

func (*GoFastMessage) Descriptor

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

func (*GoFastMessage) Marshal

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

func (*GoFastMessage) MarshalTo

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

func (*GoFastMessage) ProtoMessage

func (*GoFastMessage) ProtoMessage()

func (*GoFastMessage) Reset

func (m *GoFastMessage) Reset()

func (*GoFastMessage) Size

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

func (*GoFastMessage) String

func (m *GoFastMessage) String() string

func (*GoFastMessage) Unmarshal

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

type GoFastRedditAccount

type GoFastRedditAccount 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 *GoFastAccountData `protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
}

func PrepareRedditAccountData

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

PrepareRedditAccountData generates the protobuf version of the data.

func (*GoFastRedditAccount) Descriptor

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

func (*GoFastRedditAccount) GetData

func (m *GoFastRedditAccount) GetData() *GoFastAccountData

func (*GoFastRedditAccount) Marshal

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

func (*GoFastRedditAccount) MarshalTo

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

func (*GoFastRedditAccount) ProtoMessage

func (*GoFastRedditAccount) ProtoMessage()

func (*GoFastRedditAccount) Reset

func (m *GoFastRedditAccount) Reset()

func (*GoFastRedditAccount) Size

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

func (*GoFastRedditAccount) String

func (m *GoFastRedditAccount) String() string

func (*GoFastRedditAccount) Unmarshal

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

Jump to

Keyboard shortcuts

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