testpb

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 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_unrecognized []byte `json:"-"`
}

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

type Empty

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

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:"cache_hits,omitempty"`
	Fills            *int64      `protobuf:"varint,2,opt,name=fills" json:"fills,omitempty"`
	TotalAlloc       *uint64     `protobuf:"varint,3,opt,name=total_alloc" json:"total_alloc,omitempty"`
	MainCache        *CacheStats `protobuf:"bytes,4,opt,name=main_cache" json:"main_cache,omitempty"`
	HotCache         *CacheStats `protobuf:"bytes,5,opt,name=hot_cache" json:"hot_cache,omitempty"`
	ServerIn         *int64      `protobuf:"varint,6,opt,name=server_in" 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:"peer_loads,omitempty"`
	PeerErrors       *int64      `protobuf:"varint,10,opt,name=peer_errors" json:"peer_errors,omitempty"`
	LocalLoads       *int64      `protobuf:"varint,11,opt,name=local_loads" json:"local_loads,omitempty"`
	XXX_unrecognized []byte      `json:"-"`
}

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

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_unrecognized []byte  `json:"-"`
}

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

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,def=1" json:"repeat_count,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

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

type TestResponse

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

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

Jump to

Keyboard shortcuts

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