Documentation ¶
Index ¶
- Variables
- type DynamicKey
- func (*DynamicKey) Descriptor() ([]byte, []int)deprecated
- func (x *DynamicKey) GetBucket() int64
- func (x *DynamicKey) GetCallerId() string
- func (x *DynamicKey) GetRpcName() string
- func (*DynamicKey) ProtoMessage()
- func (x *DynamicKey) ProtoReflect() protoreflect.Message
- func (x *DynamicKey) Reset()
- func (x *DynamicKey) String() string
- type OnlineSessionsKVStore
- type OnlineSessionsKey
- type OnlineSessionsValue
- func (*OnlineSessionsValue) Descriptor() ([]byte, []int)deprecated
- func (x *OnlineSessionsValue) GetCount() int64
- func (*OnlineSessionsValue) ProtoMessage()
- func (x *OnlineSessionsValue) ProtoReflect() protoreflect.Message
- func (x *OnlineSessionsValue) Reset()
- func (x *OnlineSessionsValue) String() string
- type RateLimitCount
- func (*RateLimitCount) Descriptor() ([]byte, []int)deprecated
- func (x *RateLimitCount) GetCount() uint64
- func (x *RateLimitCount) GetLimit() uint64
- func (*RateLimitCount) ProtoMessage()
- func (x *RateLimitCount) ProtoReflect() protoreflect.Message
- func (x *RateLimitCount) Reset()
- func (x *RateLimitCount) String() string
- type RateLimitKVStore
- type StaticKVStore
- type StaticKey
- type StaticValue
- func (*StaticValue) Descriptor() ([]byte, []int)deprecated
- func (x *StaticValue) GetItems() *StaticValue_NestedItems
- func (x *StaticValue) GetPhones() []string
- func (x *StaticValue) GetValue() bool
- func (*StaticValue) ProtoMessage()
- func (x *StaticValue) ProtoReflect() protoreflect.Message
- func (x *StaticValue) Reset()
- func (x *StaticValue) String() string
- type StaticValue_NestedItems
- func (*StaticValue_NestedItems) Descriptor() ([]byte, []int)deprecated
- func (x *StaticValue_NestedItems) GetItems() []int32
- func (*StaticValue_NestedItems) ProtoMessage()
- func (x *StaticValue_NestedItems) ProtoReflect() protoreflect.Message
- func (x *StaticValue_NestedItems) Reset()
- func (x *StaticValue_NestedItems) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_examples_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DynamicKey ¶
type DynamicKey struct { RpcName string `protobuf:"bytes,1,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"` CallerId string `protobuf:"bytes,2,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"` Bucket int64 `protobuf:"varint,3,opt,name=bucket,proto3" json:"bucket,omitempty"` // contains filtered or unexported fields }
func (*DynamicKey) Descriptor
deprecated
func (*DynamicKey) Descriptor() ([]byte, []int)
Deprecated: Use DynamicKey.ProtoReflect.Descriptor instead.
func (*DynamicKey) GetBucket ¶
func (x *DynamicKey) GetBucket() int64
func (*DynamicKey) GetCallerId ¶
func (x *DynamicKey) GetCallerId() string
func (*DynamicKey) GetRpcName ¶
func (x *DynamicKey) GetRpcName() string
func (*DynamicKey) ProtoMessage ¶
func (*DynamicKey) ProtoMessage()
func (*DynamicKey) ProtoReflect ¶
func (x *DynamicKey) ProtoReflect() protoreflect.Message
func (*DynamicKey) Reset ¶
func (x *DynamicKey) Reset()
func (*DynamicKey) String ¶
func (x *DynamicKey) String() string
type OnlineSessionsKVStore ¶
type OnlineSessionsKVStore interface { Get(context.Context, *OnlineSessionsKey, ...kvstore.GetOption) (int64, error) Set(context.Context, *OnlineSessionsKey, int64, ...kvstore.SetOption) (int64, error) Del(context.Context, *OnlineSessionsKey) error Incr(context.Context, *OnlineSessionsKey, int64, ...kvstore.IncrOption) (int64, error) }
func NewOnlineSessionsStore ¶
func NewOnlineSessionsStore(r redis.Cmdable, opts ...kvstore.InitOption) OnlineSessionsKVStore
type OnlineSessionsKey ¶
type OnlineSessionsKey struct {
// contains filtered or unexported fields
}
func (*OnlineSessionsKey) Descriptor
deprecated
func (*OnlineSessionsKey) Descriptor() ([]byte, []int)
Deprecated: Use OnlineSessionsKey.ProtoReflect.Descriptor instead.
func (*OnlineSessionsKey) ProtoMessage ¶
func (*OnlineSessionsKey) ProtoMessage()
func (*OnlineSessionsKey) ProtoReflect ¶
func (x *OnlineSessionsKey) ProtoReflect() protoreflect.Message
func (*OnlineSessionsKey) Reset ¶
func (x *OnlineSessionsKey) Reset()
func (*OnlineSessionsKey) String ¶
func (x *OnlineSessionsKey) String() string
type OnlineSessionsValue ¶
type OnlineSessionsValue struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*OnlineSessionsValue) Descriptor
deprecated
func (*OnlineSessionsValue) Descriptor() ([]byte, []int)
Deprecated: Use OnlineSessionsValue.ProtoReflect.Descriptor instead.
func (*OnlineSessionsValue) GetCount ¶
func (x *OnlineSessionsValue) GetCount() int64
func (*OnlineSessionsValue) ProtoMessage ¶
func (*OnlineSessionsValue) ProtoMessage()
func (*OnlineSessionsValue) ProtoReflect ¶
func (x *OnlineSessionsValue) ProtoReflect() protoreflect.Message
func (*OnlineSessionsValue) Reset ¶
func (x *OnlineSessionsValue) Reset()
func (*OnlineSessionsValue) String ¶
func (x *OnlineSessionsValue) String() string
type RateLimitCount ¶
type RateLimitCount struct { Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*RateLimitCount) Descriptor
deprecated
func (*RateLimitCount) Descriptor() ([]byte, []int)
Deprecated: Use RateLimitCount.ProtoReflect.Descriptor instead.
func (*RateLimitCount) GetCount ¶
func (x *RateLimitCount) GetCount() uint64
func (*RateLimitCount) GetLimit ¶
func (x *RateLimitCount) GetLimit() uint64
func (*RateLimitCount) ProtoMessage ¶
func (*RateLimitCount) ProtoMessage()
func (*RateLimitCount) ProtoReflect ¶
func (x *RateLimitCount) ProtoReflect() protoreflect.Message
func (*RateLimitCount) Reset ¶
func (x *RateLimitCount) Reset()
func (*RateLimitCount) String ¶
func (x *RateLimitCount) String() string
type RateLimitKVStore ¶
type RateLimitKVStore interface { Get(context.Context, *DynamicKey, ...kvstore.GetOption) (*RateLimitCount, error) Set(context.Context, *DynamicKey, *RateLimitCount, ...kvstore.SetOption) (*RateLimitCount, error) Del(context.Context, *DynamicKey) error }
func NewRateLimitStore ¶
func NewRateLimitStore(r redis.Cmdable, opts ...kvstore.InitOption) RateLimitKVStore
type StaticKVStore ¶
type StaticKVStore interface { Get(context.Context, *StaticKey, ...kvstore.GetOption) (*StaticValue, error) Set(context.Context, *StaticKey, *StaticValue, ...kvstore.SetOption) (*StaticValue, error) Del(context.Context, *StaticKey) error }
func NewStaticStore ¶
func NewStaticStore(r redis.Cmdable, opts ...kvstore.InitOption) StaticKVStore
type StaticKey ¶
type StaticKey struct {
// contains filtered or unexported fields
}
func (*StaticKey) Descriptor
deprecated
func (*StaticKey) ProtoMessage ¶
func (*StaticKey) ProtoMessage()
func (*StaticKey) ProtoReflect ¶
func (x *StaticKey) ProtoReflect() protoreflect.Message
type StaticValue ¶
type StaticValue struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Phones []string `protobuf:"bytes,2,rep,name=phones,proto3" json:"phones,omitempty"` Items *StaticValue_NestedItems `protobuf:"bytes,3,opt,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*StaticValue) Descriptor
deprecated
func (*StaticValue) Descriptor() ([]byte, []int)
Deprecated: Use StaticValue.ProtoReflect.Descriptor instead.
func (*StaticValue) GetItems ¶
func (x *StaticValue) GetItems() *StaticValue_NestedItems
func (*StaticValue) GetPhones ¶
func (x *StaticValue) GetPhones() []string
func (*StaticValue) GetValue ¶
func (x *StaticValue) GetValue() bool
func (*StaticValue) ProtoMessage ¶
func (*StaticValue) ProtoMessage()
func (*StaticValue) ProtoReflect ¶
func (x *StaticValue) ProtoReflect() protoreflect.Message
func (*StaticValue) Reset ¶
func (x *StaticValue) Reset()
func (*StaticValue) String ¶
func (x *StaticValue) String() string
type StaticValue_NestedItems ¶
type StaticValue_NestedItems struct { Items []int32 `protobuf:"varint,1,rep,packed,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*StaticValue_NestedItems) Descriptor
deprecated
func (*StaticValue_NestedItems) Descriptor() ([]byte, []int)
Deprecated: Use StaticValue_NestedItems.ProtoReflect.Descriptor instead.
func (*StaticValue_NestedItems) GetItems ¶
func (x *StaticValue_NestedItems) GetItems() []int32
func (*StaticValue_NestedItems) ProtoMessage ¶
func (*StaticValue_NestedItems) ProtoMessage()
func (*StaticValue_NestedItems) ProtoReflect ¶
func (x *StaticValue_NestedItems) ProtoReflect() protoreflect.Message
func (*StaticValue_NestedItems) Reset ¶
func (x *StaticValue_NestedItems) Reset()
func (*StaticValue_NestedItems) String ¶
func (x *StaticValue_NestedItems) String() string
Click to show internal directories.
Click to hide internal directories.