Help us shape the future of Go! Take the 2026 Go Developer Survey

testpb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_TestRequest_RepeatCount int32 = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStats

type CacheStats struct {
	Items                *int64   `protobuf:"varint,1,opt,name=items" json:"items,omitempty"`
	Bytes                *int64   `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"`
	Gets                 *int64   `protobuf:"varint,3,opt,name=gets" json:"gets,omitempty"`
	Hits                 *int64   `protobuf:"varint,4,opt,name=hits" json:"hits,omitempty"`
	Evicts               *int64   `protobuf:"varint,5,opt,name=evicts" json:"evicts,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CacheStats) Descriptor

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

func (*CacheStats) GetBytes

func (m *CacheStats) GetBytes() int64

func (*CacheStats) GetEvicts

func (m *CacheStats) GetEvicts() int64

func (*CacheStats) GetGets

func (m *CacheStats) GetGets() int64

func (*CacheStats) GetHits

func (m *CacheStats) GetHits() int64

func (*CacheStats) GetItems

func (m *CacheStats) GetItems() int64

func (*CacheStats) ProtoMessage

func (*CacheStats) ProtoMessage()

func (*CacheStats) Reset

func (m *CacheStats) Reset()

func (*CacheStats) String

func (m *CacheStats) String() string

func (*CacheStats) XXX_DiscardUnknown

func (m *CacheStats) XXX_DiscardUnknown()

func (*CacheStats) XXX_Marshal

func (m *CacheStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheStats) XXX_Merge

func (m *CacheStats) XXX_Merge(src proto.Message)

func (*CacheStats) XXX_Size

func (m *CacheStats) XXX_Size() int

func (*CacheStats) XXX_Unmarshal

func (m *CacheStats) XXX_Unmarshal(b []byte) error

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type StatsResponse

type StatsResponse struct {
	Gets                 *int64      `protobuf:"varint,1,opt,name=gets" json:"gets,omitempty"`
	CacheHits            *int64      `protobuf:"varint,12,opt,name=cache_hits,json=cacheHits" json:"cache_hits,omitempty"`
	Fills                *int64      `protobuf:"varint,2,opt,name=fills" json:"fills,omitempty"`
	TotalAlloc           *uint64     `protobuf:"varint,3,opt,name=total_alloc,json=totalAlloc" json:"total_alloc,omitempty"`
	MainCache            *CacheStats `protobuf:"bytes,4,opt,name=main_cache,json=mainCache" json:"main_cache,omitempty"`
	HotCache             *CacheStats `protobuf:"bytes,5,opt,name=hot_cache,json=hotCache" json:"hot_cache,omitempty"`
	ServerIn             *int64      `protobuf:"varint,6,opt,name=server_in,json=serverIn" json:"server_in,omitempty"`
	Loads                *int64      `protobuf:"varint,8,opt,name=loads" json:"loads,omitempty"`
	PeerLoads            *int64      `protobuf:"varint,9,opt,name=peer_loads,json=peerLoads" json:"peer_loads,omitempty"`
	PeerErrors           *int64      `protobuf:"varint,10,opt,name=peer_errors,json=peerErrors" json:"peer_errors,omitempty"`
	LocalLoads           *int64      `protobuf:"varint,11,opt,name=local_loads,json=localLoads" json:"local_loads,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*StatsResponse) Descriptor

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

func (*StatsResponse) GetCacheHits

func (m *StatsResponse) GetCacheHits() int64

func (*StatsResponse) GetFills

func (m *StatsResponse) GetFills() int64

func (*StatsResponse) GetGets

func (m *StatsResponse) GetGets() int64

func (*StatsResponse) GetHotCache

func (m *StatsResponse) GetHotCache() *CacheStats

func (*StatsResponse) GetLoads

func (m *StatsResponse) GetLoads() int64

func (*StatsResponse) GetLocalLoads

func (m *StatsResponse) GetLocalLoads() int64

func (*StatsResponse) GetMainCache

func (m *StatsResponse) GetMainCache() *CacheStats

func (*StatsResponse) GetPeerErrors

func (m *StatsResponse) GetPeerErrors() int64

func (*StatsResponse) GetPeerLoads

func (m *StatsResponse) GetPeerLoads() int64

func (*StatsResponse) GetServerIn

func (m *StatsResponse) GetServerIn() int64

func (*StatsResponse) GetTotalAlloc

func (m *StatsResponse) GetTotalAlloc() uint64

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) Reset

func (m *StatsResponse) Reset()

func (*StatsResponse) String

func (m *StatsResponse) String() string

func (*StatsResponse) XXX_DiscardUnknown

func (m *StatsResponse) XXX_DiscardUnknown()

func (*StatsResponse) XXX_Marshal

func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatsResponse) XXX_Merge

func (m *StatsResponse) XXX_Merge(src proto.Message)

func (*StatsResponse) XXX_Size

func (m *StatsResponse) XXX_Size() int

func (*StatsResponse) XXX_Unmarshal

func (m *StatsResponse) XXX_Unmarshal(b []byte) error

type TestMessage

type TestMessage struct {
	Name                 *string  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	City                 *string  `protobuf:"bytes,2,opt,name=city" json:"city,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestMessage) Descriptor

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

func (*TestMessage) GetCity

func (m *TestMessage) GetCity() string

func (*TestMessage) GetName

func (m *TestMessage) GetName() string

func (*TestMessage) ProtoMessage

func (*TestMessage) ProtoMessage()

func (*TestMessage) Reset

func (m *TestMessage) Reset()

func (*TestMessage) String

func (m *TestMessage) String() string

func (*TestMessage) XXX_DiscardUnknown

func (m *TestMessage) XXX_DiscardUnknown()

func (*TestMessage) XXX_Marshal

func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestMessage) XXX_Merge

func (m *TestMessage) XXX_Merge(src proto.Message)

func (*TestMessage) XXX_Size

func (m *TestMessage) XXX_Size() int

func (*TestMessage) XXX_Unmarshal

func (m *TestMessage) XXX_Unmarshal(b []byte) error

type TestRequest

type TestRequest struct {
	Lower                *string  `protobuf:"bytes,1,req,name=lower" json:"lower,omitempty"`
	RepeatCount          *int32   `protobuf:"varint,2,opt,name=repeat_count,json=repeatCount,def=1" json:"repeat_count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestRequest) Descriptor

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

func (*TestRequest) GetLower

func (m *TestRequest) GetLower() string

func (*TestRequest) GetRepeatCount

func (m *TestRequest) GetRepeatCount() int32

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) Reset

func (m *TestRequest) Reset()

func (*TestRequest) String

func (m *TestRequest) String() string

func (*TestRequest) XXX_DiscardUnknown

func (m *TestRequest) XXX_DiscardUnknown()

func (*TestRequest) XXX_Marshal

func (m *TestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestRequest) XXX_Merge

func (m *TestRequest) XXX_Merge(src proto.Message)

func (*TestRequest) XXX_Size

func (m *TestRequest) XXX_Size() int

func (*TestRequest) XXX_Unmarshal

func (m *TestRequest) XXX_Unmarshal(b []byte) error

type TestResponse

type TestResponse struct {
	Value                *string  `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestResponse) Descriptor

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

func (*TestResponse) GetValue

func (m *TestResponse) GetValue() string

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) Reset

func (m *TestResponse) Reset()

func (*TestResponse) String

func (m *TestResponse) String() string

func (*TestResponse) XXX_DiscardUnknown

func (m *TestResponse) XXX_DiscardUnknown()

func (*TestResponse) XXX_Marshal

func (m *TestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestResponse) XXX_Merge

func (m *TestResponse) XXX_Merge(src proto.Message)

func (*TestResponse) XXX_Size

func (m *TestResponse) XXX_Size() int

func (*TestResponse) XXX_Unmarshal

func (m *TestResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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