v1

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "NULL",
		1: "INT",
		2: "REAL",
		3: "TEXT",
		4: "BLOB",
	}
	Type_value = map[string]int32{
		"NULL": 0,
		"INT":  1,
		"REAL": 2,
		"TEXT": 3,
		"BLOB": 4,
	}
)

Enum value maps for Type.

View Source
var File_v1_node_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CRDTValue

type CRDTValue struct {
	ModEpochNanos            int64  `protobuf:"varint,1,opt,name=ModEpochNanos,proto3" json:"ModEpochNanos,omitempty"`
	PreviousRoot             string `protobuf:"bytes,2,opt,name=PreviousRoot,proto3" json:"PreviousRoot,omitempty"`
	TombstoneSinceEpochNanos int64  `protobuf:"varint,3,opt,name=TombstoneSinceEpochNanos,proto3" json:"TombstoneSinceEpochNanos,omitempty"`
	Value                    *Row   `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*CRDTValue) Descriptor deprecated

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

Deprecated: Use CRDTValue.ProtoReflect.Descriptor instead.

func (*CRDTValue) GetModEpochNanos

func (x *CRDTValue) GetModEpochNanos() int64

func (*CRDTValue) GetPreviousRoot

func (x *CRDTValue) GetPreviousRoot() string

func (*CRDTValue) GetTombstoneSinceEpochNanos

func (x *CRDTValue) GetTombstoneSinceEpochNanos() int64

func (*CRDTValue) GetValue

func (x *CRDTValue) GetValue() *Row

func (*CRDTValue) ProtoMessage

func (*CRDTValue) ProtoMessage()

func (*CRDTValue) ProtoReflect

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

func (*CRDTValue) Reset

func (x *CRDTValue) Reset()

func (*CRDTValue) String

func (x *CRDTValue) String() string

type ColumnValue

type ColumnValue struct {
	UpdateOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=UpdateOffset,proto3" json:"UpdateOffset,omitempty"`
	Value        *SQLiteValue         `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*ColumnValue) Descriptor deprecated

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

Deprecated: Use ColumnValue.ProtoReflect.Descriptor instead.

func (*ColumnValue) GetUpdateOffset

func (x *ColumnValue) GetUpdateOffset() *durationpb.Duration

func (*ColumnValue) GetValue

func (x *ColumnValue) GetValue() *SQLiteValue

func (*ColumnValue) ProtoMessage

func (*ColumnValue) ProtoMessage()

func (*ColumnValue) ProtoReflect

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

func (*ColumnValue) Reset

func (x *ColumnValue) Reset()

func (*ColumnValue) String

func (x *ColumnValue) String() string

type Node

type Node struct {
	Key   []*SQLiteValue `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
	Value []*CRDTValue   `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
	Link  []string       `protobuf:"bytes,3,rep,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetKey

func (x *Node) GetKey() []*SQLiteValue
func (x *Node) GetLink() []string

func (*Node) GetValue

func (x *Node) GetValue() []*CRDTValue

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Row

type Row struct {
	ColumnValues       map[string]*ColumnValue `` /* 165-byte string literal not displayed */
	Deleted            bool                    `protobuf:"varint,2,opt,name=Deleted,proto3" json:"Deleted,omitempty"`
	DeleteUpdateOffset *durationpb.Duration    `protobuf:"bytes,3,opt,name=DeleteUpdateOffset,proto3" json:"DeleteUpdateOffset,omitempty"`
	// contains filtered or unexported fields
}

func (*Row) Descriptor deprecated

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

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetColumnValues

func (x *Row) GetColumnValues() map[string]*ColumnValue

func (*Row) GetDeleteUpdateOffset

func (x *Row) GetDeleteUpdateOffset() *durationpb.Duration

func (*Row) GetDeleted

func (x *Row) GetDeleted() bool

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect

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

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type SQLiteValue

type SQLiteValue struct {
	Type Type    `protobuf:"varint,1,opt,name=Type,proto3,enum=jrhy.s3db.v1.Type" json:"Type,omitempty"`
	Int  int64   `protobuf:"varint,2,opt,name=Int,proto3" json:"Int,omitempty"`
	Real float64 `protobuf:"fixed64,3,opt,name=Real,proto3" json:"Real,omitempty"`
	Text string  `protobuf:"bytes,4,opt,name=Text,proto3" json:"Text,omitempty"`
	Blob []byte  `protobuf:"bytes,5,opt,name=Blob,proto3" json:"Blob,omitempty"`
	// contains filtered or unexported fields
}

func (*SQLiteValue) Descriptor deprecated

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

Deprecated: Use SQLiteValue.ProtoReflect.Descriptor instead.

func (*SQLiteValue) GetBlob

func (x *SQLiteValue) GetBlob() []byte

func (*SQLiteValue) GetInt

func (x *SQLiteValue) GetInt() int64

func (*SQLiteValue) GetReal

func (x *SQLiteValue) GetReal() float64

func (*SQLiteValue) GetText

func (x *SQLiteValue) GetText() string

func (*SQLiteValue) GetType

func (x *SQLiteValue) GetType() Type

func (*SQLiteValue) ProtoMessage

func (*SQLiteValue) ProtoMessage()

func (*SQLiteValue) ProtoReflect

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

func (*SQLiteValue) Reset

func (x *SQLiteValue) Reset()

func (*SQLiteValue) String

func (x *SQLiteValue) String() string

type Type

type Type int32
const (
	Type_NULL Type = 0
	Type_INT  Type = 1
	Type_REAL Type = 2
	Type_TEXT Type = 3
	Type_BLOB Type = 4
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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