Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ IsEnabled: false, GCPProjectId: "", BlockTopicId: "", TransactionTopicId: "", PoolTopicId: "", TokenSupplyTopicId: "", TokenSupplyOffsetTopicId: "", }
DefaultConfig defines the default config for the indexer client.
Functions ¶
func NewIndexerPublisher ¶
func NewIndexerPublisher(pubsubClient service.PubSubClient) domain.Publisher
NewIndexerIngester creates a new indexer ingester.
Types ¶
type Config ¶
type Config struct { IsEnabled bool `mapstructure:"enabled"` GCPProjectId string `mapstructure:"gcp-project-id"` BlockTopicId string `mapstructure:"block-topic-id"` TransactionTopicId string `mapstructure:"transaction-topic-id"` PoolTopicId string `mapstructure:"pool-topic-id"` TokenSupplyTopicId string `mapstructure:"token-supply-topic-id"` TokenSupplyOffsetTopicId string `mapstructure:"token-supply-offset-topic-id"` PairTopicId string `mapstructure:"pair-offset-topic-id"` }
Config defines the config for the indexer.
func NewConfigFromOptions ¶
func NewConfigFromOptions(opts servertypes.AppOptions) Config
NewConfigFromOptions returns a new indexer config from the given options.
func (Config) Initialize ¶
Initialize initializes the indexer by creating a new PubSubClient and returning a new IndexerIngester.
Click to show internal directories.
Click to hide internal directories.