connections

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EsClient *elasticsearch.Client
View Source
var KafkaReaderConsensus *kafka.Reader
View Source
var KafkaReaderDefault *kafka.Reader
View Source
var KafkaReaderLedger *kafka.Reader
View Source
var KafkaReaderManifest *kafka.Reader
View Source
var KafkaReaderPathFind *kafka.Reader
View Source
var KafkaReaderPeerStatus *kafka.Reader
View Source
var KafkaReaderServer *kafka.Reader
View Source
var KafkaReaderTransaction *kafka.Reader
View Source
var KafkaReaderValidation *kafka.Reader
View Source
var KafkaWriter *kafka.Writer
View Source
var XrplClient *xrpl.Client

Functions

func CloseAll

func CloseAll()

func CloseEsClient

func CloseEsClient()

func CloseReaders

func CloseReaders()

func CloseWriter

func CloseWriter()

func CloseXrplClient

func CloseXrplClient()

func GetEsClient

func GetEsClient() *elasticsearch.Client

func NewConsensusReader

func NewConsensusReader()

Create a new Kafka Reader connection to $namespace-platform-consensus topic

func NewDefaultReader

func NewDefaultReader()

Create a new Kafka Reader connection to $namespace-platform-default topic

func NewEsClient

func NewEsClient()

func NewLedgerReader

func NewLedgerReader()

Create a new Kafka Reader connection to $namespace-platform-ledger topic

func NewManifestReader

func NewManifestReader()

Create a new Kafka Reader connection to $namespace-platform-manifest topic

func NewPathFindReader

func NewPathFindReader()

Create a new Kafka Reader connection to $namespace-platform-pathfind topic

func NewPeerStatusReader

func NewPeerStatusReader()

Create a new Kafka Reader connection to $namespace-platform-peerstatus topic

func NewReaderConfig

func NewReaderConfig() kafka.ReaderConfig

Returns Kafka reader config with default settings applied

func NewReaders

func NewReaders()

func NewServerReader

func NewServerReader()

Create a new Kafka Reader connection to $namespace-platform-server topic

func NewTransactionReader

func NewTransactionReader()

Create a new Kafka Reader connection to $namespace-platform-transaction topic

func NewValidationReader

func NewValidationReader()

Create a new Kafka Reader connection to $namespace-platform-validation topic

func NewWriter

func NewWriter()

Common Kafka writer for the application. Every message must specify the Topic where it must be written to.

func NewXrplClient

func NewXrplClient()

func NewXrplClientWithURL

func NewXrplClientWithURL(URL string)

func SubscribeStreams

func SubscribeStreams()

* TLDR - Do not subscribe to xrpl.StreamTypeTransactions * * XRPL `transaction` stream messages are incompatible with rippled's native * transaction format. Therefore, this service does not process transactions * streamed on `xrpl.StreamTypeTransactions` stream. Instead, we listen to the * ledger stream, fetch transactions from rippled, and add those transactions to * the Kafka topic.

func UnsubscribeStreams

func UnsubscribeStreams()

* Unsubscribe XRPL streams (usually before disconnecting)

Types

This section is empty.

Jump to

Keyboard shortcuts

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