indexer

package
v0.0.0-...-87f4a77 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkIndexLedger

func BulkIndexLedger(ch <-chan kafka.Message)

func BulkIndexTransaction

func BulkIndexTransaction(ch <-chan kafka.Message)

func BulkIndexValidation

func BulkIndexValidation(ch <-chan kafka.Message)

func GetIndexName

func GetIndexName(documentType string, ledger_index int) string

Generate Elasticsearch index name based on documentType and ledger_index

func GetLedgerIndex

func GetLedgerIndex(message []byte) (int, error)

func Index

func Index(req esapi.IndexRequest)

func IndexLedger deprecated

func IndexLedger(m kafka.Message)

Deprecated: This function does not support new IndexTemplate based indexing

func IndexTransaction deprecated

func IndexTransaction(m kafka.Message)

Deprecated: This function does not support new IndexTemplate based indexing

func IndexValidation deprecated

func IndexValidation(m kafka.Message)

Deprecated: This function does not support new IndexTemplate based indexing

func ModifyAmount

func ModifyAmount(tx map[string]interface{}, field string, network xrpl.Network) error

func ModifyTransaction

func ModifyTransaction(tx map[string]interface{}) (map[string]interface{}, error)

Modify transacion object to normalize Amount-like and other fields.

func NewBulkIndexClient

func NewBulkIndexClient(label string) (esutil.BulkIndexer, error)

Create a new Elasticsearch bulk index client

func PrintMessage

func PrintMessage(m kafka.Message)

func Test

func Test(m kafka.Message)

Types

This section is empty.

Jump to

Keyboard shortcuts

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