Documentation ¶
Index ¶
- Variables
- func AddGCPause()
- func AddMem()
- func AddRate(r float64)
- func D(d int64) []byte
- func GCPause() time.Duration
- func Int64Key(d int64) string
- func PrintGCPause()
- func PrintMem()
- func PrintRate()
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetAge() int32
- func (m *UserInfo) GetCompany() string
- func (m *UserInfo) GetGender() int32
- func (m *UserInfo) GetName() string
- func (m *UserInfo) GetSkills() []string
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Data1K = randomString(1024)
View Source
var Data1M = randomString(1048576)
Functions ¶
func AddGCPause ¶
func AddGCPause()
func PrintGCPause ¶
func PrintGCPause()
Types ¶
type UserInfo ¶
type UserInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` Gender int32 `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"` Company string `protobuf:"bytes,4,opt,name=company,proto3" json:"company,omitempty"` Skills []string `protobuf:"bytes,5,rep,name=skills,proto3" json:"skills,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetCompany ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.