queryresult

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ledger_queryresult_kv_query_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type KV

type KV struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Key       string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value     []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

KV -- QueryResult for range/execute query. Holds a key and corresponding value.

func (*KV) Descriptor deprecated

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

Deprecated: Use KV.ProtoReflect.Descriptor instead.

func (*KV) GetKey

func (x *KV) GetKey() string

func (*KV) GetNamespace

func (x *KV) GetNamespace() string

func (*KV) GetValue

func (x *KV) GetValue() []byte

func (*KV) ProtoMessage

func (*KV) ProtoMessage()

func (*KV) ProtoReflect

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

func (*KV) Reset

func (x *KV) Reset()

func (*KV) String

func (x *KV) String() string

type KeyModification

type KeyModification struct {
	TxId      string                 `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	Value     []byte                 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	IsDelete  bool                   `protobuf:"varint,4,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`
	// contains filtered or unexported fields
}

KeyModification -- QueryResult for history query. Holds a transaction ID, value, timestamp, and delete marker which resulted from a history query.

func (*KeyModification) Descriptor deprecated

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

Deprecated: Use KeyModification.ProtoReflect.Descriptor instead.

func (*KeyModification) GetIsDelete

func (x *KeyModification) GetIsDelete() bool

func (*KeyModification) GetTimestamp

func (x *KeyModification) GetTimestamp() *timestamppb.Timestamp

func (*KeyModification) GetTxId

func (x *KeyModification) GetTxId() string

func (*KeyModification) GetValue

func (x *KeyModification) GetValue() []byte

func (*KeyModification) ProtoMessage

func (*KeyModification) ProtoMessage()

func (*KeyModification) ProtoReflect

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

func (*KeyModification) Reset

func (x *KeyModification) Reset()

func (*KeyModification) String

func (x *KeyModification) String() string

Jump to

Keyboard shortcuts

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