singleton

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const C_Single1 int64 = 683727308
View Source
const C_Single2 int64 = 2982774902

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

func SaveSingle1

func SaveSingle1(m *Single1) (err error)

func SaveSingle1WithTxn

func SaveSingle1WithTxn(txn *store.LTxn, alloc *tools.Allocator, m *Single1) (err error)

func SaveSingle2

func SaveSingle2(m *Single2) (err error)

func SaveSingle2WithTxn

func SaveSingle2WithTxn(txn *store.LTxn, alloc *tools.Allocator, m *Single2) (err error)

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 ReadSingle1

func ReadSingle1(m *Single1) (*Single1, error)

func ReadSingle1WithTxn

func ReadSingle1WithTxn(txn *store.LTxn, alloc *tools.Allocator, m *Single1) (*Single1, error)

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

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 ReadSingle2

func ReadSingle2(m *Single2) (*Single2, error)

func ReadSingle2WithTxn

func ReadSingle2WithTxn(txn *store.LTxn, alloc *tools.Allocator, m *Single2) (*Single2, error)

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

Jump to

Keyboard shortcuts

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