singleton

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const C_Single1 uint64 = 4833170411250891328
View Source
const C_Single2 uint64 = 4738594819076110912

Variables

View Source
var (
	Enum_name = map[int32]string{
		0: "None",
		1: "Something",
		2: "Else",
	}
	Enum_value = map[string]int32{
		"None":      0,
		"Something": 1,
		"Else":      2,
	}
)

Enum value maps for Enum.

View Source
var File_singleton_proto protoreflect.FileDescriptor
View Source
var PoolSingle1 = poolSingle1{}
View Source
var PoolSingle2 = poolSingle2{}

Functions

This section is empty.

Types

type Enum

type Enum int32
const (
	Enum_None      Enum = 0
	Enum_Something Enum = 1
	Enum_Else      Enum = 2
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

type Single1

type Single1 struct {
	ID       int32    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	ShardKey int32    `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"`
	P1       string   `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"`
	P2       []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"`
	P5       uint64   `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"`
	Enum     Enum     `protobuf:"varint,7,opt,name=Enum,proto3,enum=singleton.Enum" json:"Enum,omitempty"`
	// contains filtered or unexported fields
}

func (*Single1) Clone added in v0.12.0

func (x *Single1) Clone() *Single1

func (*Single1) DeepCopy

func (x *Single1) DeepCopy(z *Single1)

func (*Single1) Descriptor deprecated

func (*Single1) Descriptor() ([]byte, []int)

Deprecated: Use Single1.ProtoReflect.Descriptor instead.

func (*Single1) GetEnum

func (x *Single1) GetEnum() Enum

func (*Single1) GetID

func (x *Single1) GetID() int32

func (*Single1) GetP1

func (x *Single1) GetP1() string

func (*Single1) GetP2

func (x *Single1) GetP2() []string

func (*Single1) GetP5

func (x *Single1) GetP5() uint64

func (*Single1) GetShardKey

func (x *Single1) GetShardKey() int32

func (*Single1) Marshal

func (x *Single1) Marshal() ([]byte, error)

func (*Single1) MarshalJSON added in v0.10.3

func (x *Single1) MarshalJSON() ([]byte, error)

func (*Single1) ProtoMessage

func (*Single1) ProtoMessage()

func (*Single1) ProtoReflect

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

func (*Single1) PushToContext

func (x *Single1) PushToContext(ctx *edge.RequestCtx)

func (*Single1) Reset

func (x *Single1) Reset()

func (*Single1) String

func (x *Single1) String() string

func (*Single1) Unmarshal

func (x *Single1) Unmarshal(b []byte) error

func (*Single1) UnmarshalJSON added in v0.10.3

func (x *Single1) UnmarshalJSON(b []byte) error

type Single2

type Single2 struct {
	ID       int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	ShardKey int32    `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"`
	P1       string   `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"`
	P2       []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"`
	P5       uint64   `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"`
	// contains filtered or unexported fields
}

func (*Single2) Clone added in v0.12.0

func (x *Single2) Clone() *Single2

func (*Single2) DeepCopy

func (x *Single2) DeepCopy(z *Single2)

func (*Single2) Descriptor deprecated

func (*Single2) Descriptor() ([]byte, []int)

Deprecated: Use Single2.ProtoReflect.Descriptor instead.

func (*Single2) GetID

func (x *Single2) GetID() int64

func (*Single2) GetP1

func (x *Single2) GetP1() string

func (*Single2) GetP2

func (x *Single2) GetP2() []string

func (*Single2) GetP5

func (x *Single2) GetP5() uint64

func (*Single2) GetShardKey

func (x *Single2) GetShardKey() int32

func (*Single2) Marshal

func (x *Single2) Marshal() ([]byte, error)

func (*Single2) MarshalJSON added in v0.10.3

func (x *Single2) MarshalJSON() ([]byte, error)

func (*Single2) ProtoMessage

func (*Single2) ProtoMessage()

func (*Single2) ProtoReflect

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

func (*Single2) PushToContext

func (x *Single2) PushToContext(ctx *edge.RequestCtx)

func (*Single2) Reset

func (x *Single2) Reset()

func (*Single2) String

func (x *Single2) String() string

func (*Single2) Unmarshal

func (x *Single2) Unmarshal(b []byte) error

func (*Single2) UnmarshalJSON added in v0.10.3

func (x *Single2) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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