tool

package module
v0.0.0-...-2bb5f80 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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
const (
	EIdx_Asc        EIdx = 0
	EIdx_Desc       EIdx = 1
	EIdx_TwoDSphere EIdx = 2
	EIdx_Text       EIdx = 3
)

func (EIdx) Descriptor

func (EIdx) Descriptor() protoreflect.EnumDescriptor

func (EIdx) Enum

func (x EIdx) Enum() *EIdx

func (EIdx) EnumDescriptor deprecated

func (EIdx) EnumDescriptor() ([]byte, []int)

Deprecated: Use EIdx.Descriptor instead.

func (EIdx) Number

func (x EIdx) Number() protoreflect.EnumNumber

func (EIdx) String

func (x EIdx) String() string

func (EIdx) Type

func (EIdx) Type() protoreflect.EnumType

type EOrigin

type EOrigin int32
const (
	EOrigin_Pkt     EOrigin = 0
	EOrigin_Head    EOrigin = 1
	EOrigin_Service EOrigin = 2
)

func (EOrigin) Descriptor

func (EOrigin) Descriptor() protoreflect.EnumDescriptor

func (EOrigin) Enum

func (x EOrigin) Enum() *EOrigin

func (EOrigin) EnumDescriptor deprecated

func (EOrigin) EnumDescriptor() ([]byte, []int)

Deprecated: Use EOrigin.Descriptor instead.

func (EOrigin) Number

func (x EOrigin) Number() protoreflect.EnumNumber

func (EOrigin) String

func (x EOrigin) String() string

func (EOrigin) Type

func (EOrigin) Type() protoreflect.EnumType

type EWorker

type EWorker int32
const (
	EWorker_Go     EWorker = 0
	EWorker_Active EWorker = 1 //需要key
	EWorker_Share  EWorker = 2 //需要key
	EWorker_Global EWorker = 3
	EWorker_Self   EWorker = 4
)

func (EWorker) Descriptor

func (EWorker) Descriptor() protoreflect.EnumDescriptor

func (EWorker) Enum

func (x EWorker) Enum() *EWorker

func (EWorker) EnumDescriptor deprecated

func (EWorker) EnumDescriptor() ([]byte, []int)

Deprecated: Use EWorker.Descriptor instead.

func (EWorker) Number

func (x EWorker) Number() protoreflect.EnumNumber

func (EWorker) String

func (x EWorker) String() string

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

Deprecated: Use Fail.ProtoReflect.Descriptor instead.

func (*Fail) GetCode

func (x *Fail) GetCode() int32

func (*Fail) GetKey

func (x *Fail) GetKey() string

func (*Fail) GetMsg

func (x *Fail) GetMsg() string

func (*Fail) ProtoMessage

func (*Fail) ProtoMessage()

func (*Fail) ProtoReflect

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

func (*Fail) Reset

func (x *Fail) Reset()

func (*Fail) String

func (x *Fail) String() string

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

Deprecated: Use Idx.ProtoReflect.Descriptor instead.

func (*Idx) GetFields

func (x *Idx) GetFields() []*IdxField

func (*Idx) GetName

func (x *Idx) GetName() string

func (*Idx) GetSparse

func (x *Idx) GetSparse() bool

func (*Idx) GetTtl

func (x *Idx) GetTtl() int64

func (*Idx) GetUnique

func (x *Idx) GetUnique() bool

func (*Idx) ProtoMessage

func (*Idx) ProtoMessage()

func (*Idx) ProtoReflect

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

func (*Idx) Reset

func (x *Idx) Reset()

func (*Idx) String

func (x *Idx) String() string

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

Deprecated: Use IdxField.ProtoReflect.Descriptor instead.

func (*IdxField) GetName

func (x *IdxField) GetName() string

func (*IdxField) GetType

func (x *IdxField) GetType() EIdx

func (*IdxField) ProtoMessage

func (*IdxField) ProtoMessage()

func (*IdxField) ProtoReflect

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

func (*IdxField) Reset

func (x *IdxField) Reset()

func (*IdxField) String

func (x *IdxField) String() string

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

Deprecated: Use Ntc.ProtoReflect.Descriptor instead.

func (*Ntc) GetItems

func (x *Ntc) GetItems() []*NtcItem

func (*Ntc) GetSvc

func (x *Ntc) GetSvc() string

func (*Ntc) ProtoMessage

func (*Ntc) ProtoMessage()

func (*Ntc) ProtoReflect

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

func (*Ntc) Reset

func (x *Ntc) Reset()

func (*Ntc) String

func (x *Ntc) String() string

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

Deprecated: Use NtcItem.ProtoReflect.Descriptor instead.

func (*NtcItem) GetCode

func (x *NtcItem) GetCode() string

func (*NtcItem) GetKey

func (x *NtcItem) GetKey() string

func (*NtcItem) GetOrigin

func (x *NtcItem) GetOrigin() EOrigin

func (*NtcItem) GetWorker

func (x *NtcItem) GetWorker() EWorker

func (*NtcItem) ProtoMessage

func (*NtcItem) ProtoMessage()

func (*NtcItem) ProtoReflect

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

func (*NtcItem) Reset

func (x *NtcItem) Reset()

func (*NtcItem) String

func (x *NtcItem) String() string

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

Deprecated: Use Svc.ProtoReflect.Descriptor instead.

func (*Svc) GetId

func (x *Svc) GetId() int32

func (*Svc) GetName

func (x *Svc) GetName() string

func (*Svc) GetNtc

func (x *Svc) GetNtc() []*Ntc

func (*Svc) GetWorker

func (x *Svc) GetWorker() *Worker

func (*Svc) ProtoMessage

func (*Svc) ProtoMessage()

func (*Svc) ProtoReflect

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

func (*Svc) Reset

func (x *Svc) Reset()

func (*Svc) String

func (x *Svc) String() string

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

Deprecated: Use Worker.ProtoReflect.Descriptor instead.

func (*Worker) GetKey

func (x *Worker) GetKey() string

func (*Worker) GetMode

func (x *Worker) GetMode() EWorker

func (*Worker) GetOrigin

func (x *Worker) GetOrigin() EOrigin

func (*Worker) ProtoMessage

func (*Worker) ProtoMessage()

func (*Worker) ProtoReflect

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

func (*Worker) Reset

func (x *Worker) Reset()

func (*Worker) String

func (x *Worker) String() string

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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