examples

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 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

func NewRateLimitStore

func NewRateLimitStore(r redis.Cmdable, opts ...kvstore.InitOption) RateLimitKVStore

type StaticKVStore

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) Descriptor() ([]byte, []int)

Deprecated: Use StaticKey.ProtoReflect.Descriptor instead.

func (*StaticKey) ProtoMessage

func (*StaticKey) ProtoMessage()

func (*StaticKey) ProtoReflect

func (x *StaticKey) ProtoReflect() protoreflect.Message

func (*StaticKey) Reset

func (x *StaticKey) Reset()

func (*StaticKey) String

func (x *StaticKey) String() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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