service

package
v27.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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(maxPublishDelay int, 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

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

PublishPair implements PubSubClient.PublishPair

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