Documentation ¶
Index ¶
- Variables
- type EIdx
- type EOrigin
- type EWorker
- type Fail
- type Idx
- func (*Idx) Descriptor() ([]byte, []int)deprecated
- func (x *Idx) GetFields() []*IdxField
- func (x *Idx) GetName() string
- func (x *Idx) GetSparse() bool
- func (x *Idx) GetTtl() int64
- func (x *Idx) GetUnique() bool
- func (*Idx) ProtoMessage()
- func (x *Idx) ProtoReflect() protoreflect.Message
- func (x *Idx) Reset()
- func (x *Idx) String() string
- type IdxField
- type Ntc
- type NtcItem
- func (*NtcItem) Descriptor() ([]byte, []int)deprecated
- func (x *NtcItem) GetCode() string
- func (x *NtcItem) GetKey() string
- func (x *NtcItem) GetOrigin() EOrigin
- func (x *NtcItem) GetWorker() EWorker
- func (*NtcItem) ProtoMessage()
- func (x *NtcItem) ProtoReflect() protoreflect.Message
- func (x *NtcItem) Reset()
- func (x *NtcItem) String() string
- type Svc
- func (*Svc) Descriptor() ([]byte, []int)deprecated
- func (x *Svc) GetId() int32
- func (x *Svc) GetName() string
- func (x *Svc) GetNtc() []*Ntc
- func (x *Svc) GetWorker() *Worker
- func (*Svc) ProtoMessage()
- func (x *Svc) ProtoReflect() protoreflect.Message
- func (x *Svc) Reset()
- func (x *Svc) String() string
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EOrigin_name = map[int32]string{ 0: "Pkt", 1: "Head", 2: "Service", } EOrigin_value = map[string]int32{ "Pkt": 0, "Head": 1, "Service": 2, } )
Enum value maps for EOrigin.
View Source
var ( EWorker_name = map[int32]string{ 0: "Go", 1: "Active", 2: "Share", 3: "Global", 4: "Self", } EWorker_value = map[string]int32{ "Go": 0, "Active": 1, "Share": 2, "Global": 3, "Self": 4, } )
Enum value maps for EWorker.
View Source
var ( EIdx_name = map[int32]string{ 0: "Asc", 1: "Desc", 2: "TwoDSphere", 3: "Text", } EIdx_value = map[string]int32{ "Asc": 0, "Desc": 1, "TwoDSphere": 2, "Text": 3, } )
Enum value maps for EIdx.
View Source
var ( // optional int32 code = 151100; E_Code = &file__15m_games_tool_kiwi_proto_extTypes[1] // repeated string role = 151101; E_Role = &file__15m_games_tool_kiwi_proto_extTypes[2] // repeated kiwi.Fail fail = 151102; E_Fail = &file__15m_games_tool_kiwi_proto_extTypes[3] // optional bool schema = 151103; E_Schema = &file__15m_games_tool_kiwi_proto_extTypes[4] // repeated kiwi.Idx idx = 151104; E_Idx = &file__15m_games_tool_kiwi_proto_extTypes[5] // optional kiwi.Worker worker = 151105; E_Worker = &file__15m_games_tool_kiwi_proto_extTypes[6] )
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// optional kiwi.Svc svc = 151001;
E_Svc = &file__15m_games_tool_kiwi_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
View Source
var File__15m_games_tool_kiwi_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EIdx ¶
type EIdx int32
func (EIdx) Descriptor ¶
func (EIdx) Descriptor() protoreflect.EnumDescriptor
func (EIdx) EnumDescriptor
deprecated
func (EIdx) Number ¶
func (x EIdx) Number() protoreflect.EnumNumber
func (EIdx) Type ¶
func (EIdx) Type() protoreflect.EnumType
type EOrigin ¶
type EOrigin int32
func (EOrigin) Descriptor ¶
func (EOrigin) Descriptor() protoreflect.EnumDescriptor
func (EOrigin) EnumDescriptor
deprecated
func (EOrigin) Number ¶
func (x EOrigin) Number() protoreflect.EnumNumber
func (EOrigin) Type ¶
func (EOrigin) Type() protoreflect.EnumType
type EWorker ¶
type EWorker int32
func (EWorker) Descriptor ¶
func (EWorker) Descriptor() protoreflect.EnumDescriptor
func (EWorker) EnumDescriptor
deprecated
func (EWorker) Number ¶
func (x EWorker) Number() protoreflect.EnumNumber
func (EWorker) Type ¶
func (EWorker) Type() protoreflect.EnumType
type Fail ¶
type Fail struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Fail) Descriptor
deprecated
func (*Fail) ProtoMessage ¶
func (*Fail) ProtoMessage()
func (*Fail) ProtoReflect ¶
func (x *Fail) ProtoReflect() protoreflect.Message
type Idx ¶
type Idx struct { Fields []*IdxField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` Unique bool `protobuf:"varint,2,opt,name=unique,proto3" json:"unique,omitempty"` //唯一索引 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //索引名 Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` //用于在一定时间后或在特定的时刻自动从集合中删除文档 Sparse bool `protobuf:"varint,5,opt,name=sparse,proto3" json:"sparse,omitempty"` //稀疏索引仅包含具有索引字段的文档条目,即使索引字段包含空值也是如此。索引会跳过任何缺少索引字段的文档 // contains filtered or unexported fields }
func (*Idx) Descriptor
deprecated
func (*Idx) ProtoMessage ¶
func (*Idx) ProtoMessage()
func (*Idx) ProtoReflect ¶
func (x *Idx) ProtoReflect() protoreflect.Message
type IdxField ¶
type IdxField struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type EIdx `protobuf:"varint,2,opt,name=type,proto3,enum=kiwi.EIdx" json:"type,omitempty"` //索引类型 // contains filtered or unexported fields }
func (*IdxField) Descriptor
deprecated
func (*IdxField) ProtoMessage ¶
func (*IdxField) ProtoMessage()
func (*IdxField) ProtoReflect ¶
func (x *IdxField) ProtoReflect() protoreflect.Message
type Ntc ¶
type Ntc struct { Svc string `protobuf:"bytes,1,opt,name=svc,proto3" json:"svc,omitempty"` Items []*NtcItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*Ntc) Descriptor
deprecated
func (*Ntc) ProtoMessage ¶
func (*Ntc) ProtoMessage()
func (*Ntc) ProtoReflect ¶
func (x *Ntc) ProtoReflect() protoreflect.Message
type NtcItem ¶
type NtcItem struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Worker EWorker `protobuf:"varint,2,opt,name=worker,proto3,enum=kiwi.EWorker" json:"worker,omitempty"` Origin EOrigin `protobuf:"varint,3,opt,name=origin,proto3,enum=kiwi.EOrigin" json:"origin,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*NtcItem) Descriptor
deprecated
func (*NtcItem) ProtoMessage ¶
func (*NtcItem) ProtoMessage()
func (*NtcItem) ProtoReflect ¶
func (x *NtcItem) ProtoReflect() protoreflect.Message
type Svc ¶
type Svc struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //服务id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //服务名 Worker *Worker `protobuf:"bytes,3,opt,name=worker,proto3" json:"worker,omitempty"` //worker使用方式 Ntc []*Ntc `protobuf:"bytes,4,rep,name=ntc,proto3" json:"ntc,omitempty"` //监听的通知 // contains filtered or unexported fields }
func (*Svc) Descriptor
deprecated
func (*Svc) ProtoMessage ¶
func (*Svc) ProtoMessage()
func (*Svc) ProtoReflect ¶
func (x *Svc) ProtoReflect() protoreflect.Message
type Worker ¶
type Worker struct { Mode EWorker `protobuf:"varint,1,opt,name=mode,proto3,enum=kiwi.EWorker" json:"mode,omitempty"` Origin EOrigin `protobuf:"varint,2,opt,name=origin,proto3,enum=kiwi.EOrigin" json:"origin,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*Worker) Descriptor
deprecated
func (*Worker) ProtoMessage ¶
func (*Worker) ProtoMessage()
func (*Worker) ProtoReflect ¶
func (x *Worker) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.