blockchain

package
v0.0.0-...-805313b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(
	logger logger.Logger,
	repository *block.Repository,
	kafkaAdapter kafka.Kafka,
	bcProvider bitcoin.Provider,
	defaultHeight int, heightPollingInterval int, blockPollingInterval int, rpcURL string, apiKey string, kafkaTopic string,
) *Service

func (*Service) StartBlockWorker

func (b *Service) StartBlockWorker(ctx context.Context, wg *sync.WaitGroup, heightCh chan int) error

func (*Service) StartHeightWorker

func (b *Service) StartHeightWorker(ctx context.Context, wg *sync.WaitGroup, heightCh chan int) error

Jump to

Keyboard shortcuts

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