service

package
v25.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubClient

type PubSubClient struct {
	// contains filtered or unexported fields
}

PubSubClient is a client for publishing messages to a PubSub topic.

func NewPubSubCLient

func NewPubSubCLient(projectId, blockTopicId, transactionTopicId, poolTopicId, tokenSupplyTopicId, tokenSupplyOffsetTopicId, pairTopicID string) *PubSubClient

NewPubSubCLient creates a new PubSubClient.

func (*PubSubClient) PublishBlock

func (p *PubSubClient) PublishBlock(ctx context.Context, block indexerdomain.Block) error

Publish implements PubSubClient.PublishBlock

func (*PubSubClient) PublishPair added in v25.2.1

func (p *PubSubClient) PublishPair(ctx context.Context, pair indexerdomain.Pair) error

PublishPair implements PubSubClient.PublishPair

func (*PubSubClient) PublishPool

func (p *PubSubClient) PublishPool(ctx context.Context, pool indexerdomain.Pool) error

PublishPool implements PubSubClient.PublishPool

func (*PubSubClient) PublishTokenSupply

func (p *PubSubClient) PublishTokenSupply(ctx context.Context, tokenSupply indexerdomain.TokenSupply) error

PublishTokenSupply implements domain.PubSubClient.

func (*PubSubClient) PublishTokenSupplyOffset

func (p *PubSubClient) PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset indexerdomain.TokenSupplyOffset) error

PublishTokenSupplyOffset implements domain.PubSubClient.

func (*PubSubClient) PublishTransaction

func (p *PubSubClient) PublishTransaction(ctx context.Context, txn indexerdomain.Transaction) error

PublishTransaction implements PubSubClient.PublishTransaction

Jump to

Keyboard shortcuts

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