-
Notifications
You must be signed in to change notification settings - Fork 0
/
item.pb.go
208 lines (178 loc) · 7.61 KB
/
item.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: item.proto
/*
Package gcache is a generated protocol buffer package.
It is generated from these files:
item.proto
It has these top-level messages:
ItemMessage
ConfigMessage
*/
package gcache
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ItemMessage_Commands int32
const (
ItemMessage_SET ItemMessage_Commands = 0
ItemMessage_GET ItemMessage_Commands = 1
ItemMessage_PURGE ItemMessage_Commands = 2
ItemMessage_DEAD ItemMessage_Commands = 3
)
var ItemMessage_Commands_name = map[int32]string{
0: "SET",
1: "GET",
2: "PURGE",
3: "DEAD",
}
var ItemMessage_Commands_value = map[string]int32{
"SET": 0,
"GET": 1,
"PURGE": 2,
"DEAD": 3,
}
func (x ItemMessage_Commands) String() string {
return proto.EnumName(ItemMessage_Commands_name, int32(x))
}
func (ItemMessage_Commands) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type ConfigMessage_CacheTypes int32
const (
ConfigMessage_RWL ConfigMessage_CacheTypes = 0
ConfigMessage_LOCKONLY ConfigMessage_CacheTypes = 1
ConfigMessage_SINGLEGORUTINE ConfigMessage_CacheTypes = 2
ConfigMessage_REMOTE ConfigMessage_CacheTypes = 3
)
var ConfigMessage_CacheTypes_name = map[int32]string{
0: "RWL",
1: "LOCKONLY",
2: "SINGLEGORUTINE",
3: "REMOTE",
}
var ConfigMessage_CacheTypes_value = map[string]int32{
"RWL": 0,
"LOCKONLY": 1,
"SINGLEGORUTINE": 2,
"REMOTE": 3,
}
func (x ConfigMessage_CacheTypes) String() string {
return proto.EnumName(ConfigMessage_CacheTypes_name, int32(x))
}
func (ConfigMessage_CacheTypes) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
type ItemMessage struct {
Command ItemMessage_Commands `protobuf:"varint,1,opt,name=Command,json=command,enum=gcache.ItemMessage_Commands" json:"Command,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,json=name" json:"Name,omitempty"`
Expiration int64 `protobuf:"varint,3,opt,name=Expiration,json=expiration" json:"Expiration,omitempty"`
Object []byte `protobuf:"bytes,4,opt,name=Object,json=object,proto3" json:"Object,omitempty"`
}
func (m *ItemMessage) Reset() { *m = ItemMessage{} }
func (m *ItemMessage) String() string { return proto.CompactTextString(m) }
func (*ItemMessage) ProtoMessage() {}
func (*ItemMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ItemMessage) GetCommand() ItemMessage_Commands {
if m != nil {
return m.Command
}
return ItemMessage_SET
}
func (m *ItemMessage) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ItemMessage) GetExpiration() int64 {
if m != nil {
return m.Expiration
}
return 0
}
func (m *ItemMessage) GetObject() []byte {
if m != nil {
return m.Object
}
return nil
}
type ConfigMessage struct {
DefaultExpiration int64 `protobuf:"varint,1,opt,name=DefaultExpiration,json=defaultExpiration" json:"DefaultExpiration,omitempty"`
SizeLimit int64 `protobuf:"zigzag64,2,opt,name=SizeLimit,json=sizeLimit" json:"SizeLimit,omitempty"`
ShardCount int64 `protobuf:"zigzag64,3,opt,name=ShardCount,json=shardCount" json:"ShardCount,omitempty"`
IsKeepUsefull bool `protobuf:"varint,4,opt,name=IsKeepUsefull,json=isKeepUsefull" json:"IsKeepUsefull,omitempty"`
CacheType ConfigMessage_CacheTypes `protobuf:"varint,5,opt,name=CacheType,json=cacheType,enum=gcache.ConfigMessage_CacheTypes" json:"CacheType,omitempty"`
}
func (m *ConfigMessage) Reset() { *m = ConfigMessage{} }
func (m *ConfigMessage) String() string { return proto.CompactTextString(m) }
func (*ConfigMessage) ProtoMessage() {}
func (*ConfigMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ConfigMessage) GetDefaultExpiration() int64 {
if m != nil {
return m.DefaultExpiration
}
return 0
}
func (m *ConfigMessage) GetSizeLimit() int64 {
if m != nil {
return m.SizeLimit
}
return 0
}
func (m *ConfigMessage) GetShardCount() int64 {
if m != nil {
return m.ShardCount
}
return 0
}
func (m *ConfigMessage) GetIsKeepUsefull() bool {
if m != nil {
return m.IsKeepUsefull
}
return false
}
func (m *ConfigMessage) GetCacheType() ConfigMessage_CacheTypes {
if m != nil {
return m.CacheType
}
return ConfigMessage_RWL
}
func init() {
proto.RegisterType((*ItemMessage)(nil), "gcache.ItemMessage")
proto.RegisterType((*ConfigMessage)(nil), "gcache.ConfigMessage")
proto.RegisterEnum("gcache.ItemMessage_Commands", ItemMessage_Commands_name, ItemMessage_Commands_value)
proto.RegisterEnum("gcache.ConfigMessage_CacheTypes", ConfigMessage_CacheTypes_name, ConfigMessage_CacheTypes_value)
}
func init() { proto.RegisterFile("item.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 371 bytes of a gzipped FileDescriptorProto
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