pbtrxdb

package
v0.9.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IndexableCategory_name = map[int32]string{
	0: "INDEXABLE_CATEGORY_ACCOUNT",
	1: "INDEXABLE_CATEGORY_BLOCK",
	2: "INDEXABLE_CATEGORY_TRANSACTION",
	3: "INDEXABLE_CATEGORY_TIMELINE",
}
View Source
var IndexableCategory_value = map[string]int32{
	"INDEXABLE_CATEGORY_ACCOUNT":     0,
	"INDEXABLE_CATEGORY_BLOCK":       1,
	"INDEXABLE_CATEGORY_TRANSACTION": 2,
	"INDEXABLE_CATEGORY_TIMELINE":    3,
}

Functions

func IndexableCategoryHumanKeys

func IndexableCategoryHumanKeys() (out []string)

IndexableCategoryHumanKeys returns the valid set of human keys that can be used as valid indexable categories.

Types

type AccountRow

type AccountRow struct {
	// Key will be account:block_id    // block_id, block_num and account implicit in key
	Name                 string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Creator              string               `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	BlockId              string               `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	TrxId                string               `protobuf:"bytes,4,opt,name=trx_id,json=trxId,proto3" json:"trx_id,omitempty"`
	BlockTime            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*AccountRow) Descriptor

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

func (*AccountRow) GetBlockId

func (m *AccountRow) GetBlockId() string

func (*AccountRow) GetBlockTime

func (m *AccountRow) GetBlockTime() *timestamp.Timestamp

func (*AccountRow) GetCreator

func (m *AccountRow) GetCreator() string

func (*AccountRow) GetName

func (m *AccountRow) GetName() string

func (*AccountRow) GetTrxId

func (m *AccountRow) GetTrxId() string

func (*AccountRow) ProtoMessage

func (*AccountRow) ProtoMessage()

func (*AccountRow) Reset

func (m *AccountRow) Reset()

func (*AccountRow) String

func (m *AccountRow) String() string

func (*AccountRow) XXX_DiscardUnknown

func (m *AccountRow) XXX_DiscardUnknown()

func (*AccountRow) XXX_Marshal

func (m *AccountRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountRow) XXX_Merge

func (m *AccountRow) XXX_Merge(src proto.Message)

func (*AccountRow) XXX_Size

func (m *AccountRow) XXX_Size() int

func (*AccountRow) XXX_Unmarshal

func (m *AccountRow) XXX_Unmarshal(b []byte) error

type BlockRow

type BlockRow struct {
	Block                *v1.Block           `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	ImplicitTrxRefs      *v1.TransactionRefs `protobuf:"bytes,2,opt,name=implicit_trx_refs,json=implicitTrxRefs,proto3" json:"implicit_trx_refs,omitempty"`
	TrxRefs              *v1.TransactionRefs `protobuf:"bytes,3,opt,name=trx_refs,json=trxRefs,proto3" json:"trx_refs,omitempty"`
	TraceRefs            *v1.TransactionRefs `protobuf:"bytes,4,opt,name=trace_refs,json=traceRefs,proto3" json:"trace_refs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*BlockRow) Descriptor

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

func (*BlockRow) GetBlock

func (m *BlockRow) GetBlock() *v1.Block

func (*BlockRow) GetImplicitTrxRefs

func (m *BlockRow) GetImplicitTrxRefs() *v1.TransactionRefs

func (*BlockRow) GetTraceRefs

func (m *BlockRow) GetTraceRefs() *v1.TransactionRefs

func (*BlockRow) GetTrxRefs

func (m *BlockRow) GetTrxRefs() *v1.TransactionRefs

func (*BlockRow) ProtoMessage

func (*BlockRow) ProtoMessage()

func (*BlockRow) Reset

func (m *BlockRow) Reset()

func (*BlockRow) String

func (m *BlockRow) String() string

func (*BlockRow) XXX_DiscardUnknown

func (m *BlockRow) XXX_DiscardUnknown()

func (*BlockRow) XXX_Marshal

func (m *BlockRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockRow) XXX_Merge

func (m *BlockRow) XXX_Merge(src proto.Message)

func (*BlockRow) XXX_Size

func (m *BlockRow) XXX_Size() int

func (*BlockRow) XXX_Unmarshal

func (m *BlockRow) XXX_Unmarshal(b []byte) error

type DtrxRow

type DtrxRow struct {
	SignedTrx            *v1.SignedTransaction `protobuf:"bytes,1,opt,name=signed_trx,json=signedTrx,proto3" json:"signed_trx,omitempty"`
	CreatedBy            *v1.ExtDTrxOp         `protobuf:"bytes,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	CanceledBy           *v1.ExtDTrxOp         `protobuf:"bytes,3,opt,name=canceled_by,json=canceledBy,proto3" json:"canceled_by,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*DtrxRow) Descriptor

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

func (*DtrxRow) GetCanceledBy

func (m *DtrxRow) GetCanceledBy() *v1.ExtDTrxOp

func (*DtrxRow) GetCreatedBy

func (m *DtrxRow) GetCreatedBy() *v1.ExtDTrxOp

func (*DtrxRow) GetSignedTrx

func (m *DtrxRow) GetSignedTrx() *v1.SignedTransaction

func (*DtrxRow) ProtoMessage

func (*DtrxRow) ProtoMessage()

func (*DtrxRow) Reset

func (m *DtrxRow) Reset()

func (*DtrxRow) String

func (m *DtrxRow) String() string

func (*DtrxRow) XXX_DiscardUnknown

func (m *DtrxRow) XXX_DiscardUnknown()

func (*DtrxRow) XXX_Marshal

func (m *DtrxRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DtrxRow) XXX_Merge

func (m *DtrxRow) XXX_Merge(src proto.Message)

func (*DtrxRow) XXX_Size

func (m *DtrxRow) XXX_Size() int

func (*DtrxRow) XXX_Unmarshal

func (m *DtrxRow) XXX_Unmarshal(b []byte) error

type ImplicitTrxRow

type ImplicitTrxRow struct {
	// Primary key to include: transaction_id and block_id
	SignedTrx            *v1.SignedTransaction `protobuf:"bytes,1,opt,name=signed_trx,json=signedTrx,proto3" json:"signed_trx,omitempty"`
	Name                 string                `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ImplicitTrxRow) Descriptor

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

func (*ImplicitTrxRow) GetName

func (m *ImplicitTrxRow) GetName() string

func (*ImplicitTrxRow) GetSignedTrx

func (m *ImplicitTrxRow) GetSignedTrx() *v1.SignedTransaction

func (*ImplicitTrxRow) ProtoMessage

func (*ImplicitTrxRow) ProtoMessage()

func (*ImplicitTrxRow) Reset

func (m *ImplicitTrxRow) Reset()

func (*ImplicitTrxRow) String

func (m *ImplicitTrxRow) String() string

func (*ImplicitTrxRow) XXX_DiscardUnknown

func (m *ImplicitTrxRow) XXX_DiscardUnknown()

func (*ImplicitTrxRow) XXX_Marshal

func (m *ImplicitTrxRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImplicitTrxRow) XXX_Merge

func (m *ImplicitTrxRow) XXX_Merge(src proto.Message)

func (*ImplicitTrxRow) XXX_Size

func (m *ImplicitTrxRow) XXX_Size() int

func (*ImplicitTrxRow) XXX_Unmarshal

func (m *ImplicitTrxRow) XXX_Unmarshal(b []byte) error

type IndexableCategory

type IndexableCategory int32

IndexableCategory represents the valid catgory that can be read/write by the TrxDB instance.

Those enum are used mainly throughout the code to determine what needs to be written to the database as well as where to read each component.

const (
	IndexableCategory_INDEXABLE_CATEGORY_ACCOUNT     IndexableCategory = 0
	IndexableCategory_INDEXABLE_CATEGORY_BLOCK       IndexableCategory = 1
	IndexableCategory_INDEXABLE_CATEGORY_TRANSACTION IndexableCategory = 2
	IndexableCategory_INDEXABLE_CATEGORY_TIMELINE    IndexableCategory = 3
)

func IndexableCategoryFromHumanKey

func IndexableCategoryFromHumanKey(key string) (IndexableCategory, bool)

IndexableCategoryFromHumanKey transforms the human key representing the category and turns it into a proper `IndexableCategory` category object, returning an extra bool to determine if the conversion was successful.

func (IndexableCategory) EnumDescriptor

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

func (IndexableCategory) HumanKey

func (i IndexableCategory) HumanKey() string

HumanKey returns the human friendly key that can be used to represent this category

func (IndexableCategory) String

func (x IndexableCategory) String() string

type TrxRow

type TrxRow struct {
	SignedTrx            *v1.SignedTransaction  `protobuf:"bytes,1,opt,name=signed_trx,json=signedTrx,proto3" json:"signed_trx,omitempty"`
	Receipt              *v1.TransactionReceipt `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	PublicKeys           *v1.PublicKeys         `protobuf:"bytes,3,opt,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*TrxRow) Descriptor

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

func (*TrxRow) GetPublicKeys

func (m *TrxRow) GetPublicKeys() *v1.PublicKeys

func (*TrxRow) GetReceipt

func (m *TrxRow) GetReceipt() *v1.TransactionReceipt

func (*TrxRow) GetSignedTrx

func (m *TrxRow) GetSignedTrx() *v1.SignedTransaction

func (*TrxRow) ProtoMessage

func (*TrxRow) ProtoMessage()

func (*TrxRow) Reset

func (m *TrxRow) Reset()

func (*TrxRow) String

func (m *TrxRow) String() string

func (*TrxRow) XXX_DiscardUnknown

func (m *TrxRow) XXX_DiscardUnknown()

func (*TrxRow) XXX_Marshal

func (m *TrxRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrxRow) XXX_Merge

func (m *TrxRow) XXX_Merge(src proto.Message)

func (*TrxRow) XXX_Size

func (m *TrxRow) XXX_Size() int

func (*TrxRow) XXX_Unmarshal

func (m *TrxRow) XXX_Unmarshal(b []byte) error

type TrxTraceRow

type TrxTraceRow struct {
	TrxTrace             *v1.TransactionTrace `protobuf:"bytes,1,opt,name=trx_trace,json=trxTrace,proto3" json:"trx_trace,omitempty"`
	BlockHeader          *v1.BlockHeader      `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*TrxTraceRow) Descriptor

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

func (*TrxTraceRow) GetBlockHeader

func (m *TrxTraceRow) GetBlockHeader() *v1.BlockHeader

func (*TrxTraceRow) GetTrxTrace

func (m *TrxTraceRow) GetTrxTrace() *v1.TransactionTrace

func (*TrxTraceRow) ProtoMessage

func (*TrxTraceRow) ProtoMessage()

func (*TrxTraceRow) Reset

func (m *TrxTraceRow) Reset()

func (*TrxTraceRow) String

func (m *TrxTraceRow) String() string

func (*TrxTraceRow) XXX_DiscardUnknown

func (m *TrxTraceRow) XXX_DiscardUnknown()

func (*TrxTraceRow) XXX_Marshal

func (m *TrxTraceRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrxTraceRow) XXX_Merge

func (m *TrxTraceRow) XXX_Merge(src proto.Message)

func (*TrxTraceRow) XXX_Size

func (m *TrxTraceRow) XXX_Size() int

func (*TrxTraceRow) XXX_Unmarshal

func (m *TrxTraceRow) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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