builder

package
v0.0.0-...-ce1b770 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGuardian

func CheckGuardian(guardian *health.GuardianCheck) healthcheck.Check

func NewAlertClient

func NewAlertClient(cfg *config.Configuration) (alert.AlertClient, error)

func NewAwsConfig

func NewAwsConfig(ctx context.Context, config *config.Configuration) (aws.Config, error)

func NewCache

func NewCache[T any](name string, numKeys, maxCost int64) (cache.CacheInterface[T], error)

func NewDatabase

func NewDatabase(ctx context.Context, cfg *config.Configuration, logger *zap.Logger) (*dbutil.Session, error)

func NewDeduplicator

func NewDeduplicator(name string, cfg config.Cache, logger *zap.Logger) (*deduplicator.Deduplicator, error)

func NewGossipChannels

func NewGossipChannels(cfg *config.Configuration) *gossip.GossipChannels

func NewMetrics

func NewMetrics(cfg *config.Configuration) metrics.Metrics

func NewObservationConsumePublish

Creates two callbacks depending on whether the execution is local (memory queue) or not (SQS queue) callback to obtain queue messages from a queue callback to publish vaa non pyth messages to a sink

func NewRedisClient

func NewRedisClient(cfg *config.Configuration) *redis.Client

func NewSQSConsumer

func NewSQSConsumer(sqsURL string, ctx context.Context, cfg *config.Configuration) (*sqs.Consumer, error)

func NewSQSProducer

func NewSQSProducer(awsConfig aws.Config, sqsURL string) (*sqs.Producer, error)

func NewTxHashStore

func NewTxHashStore(ctx context.Context, config *config.Configuration, metrics metrics.Metrics, db *mongo.Database, logger *zap.Logger) (txhash.TxHashStore, error)

func NewVAAConsumePublish

Creates two callbacks depending on whether the execution is local (memory queue) or not (SQS queue) callback to obtain queue messages from a queue callback to publish vaa non pyth messages to a sink

func NewVAANotifierFunc

func NewVAANotifierFunc(cfg *config.Configuration, logger *zap.Logger) processor.VAANotifyFunc

func NewVAARedisProducerFunc

func NewVAARedisProducerFunc(cfg *config.Configuration, logger *zap.Logger) (producer.PushFunc, error)

Creates a callback to publish VAA messages to a redis pubsub

Types

This section is empty.

Jump to

Keyboard shortcuts

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