Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

File: internal/mock_blockchain_client.go

File: internal/mock_chain_poller.go

File: internal/tools.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventKey

type EventKey struct {
	Address common.Address
	Topic   common.Hash
}

EventKey uniquely identifies an event subscription based on address and topic.

type MockBlockchainClient

type MockBlockchainClient struct {
	mock.Mock
}

MockBlockchainClient implements the internal.BlockchainClient interface for testing.

func (*MockBlockchainClient) BlockNumber

func (m *MockBlockchainClient) BlockNumber(ctx context.Context) (uint64, error)

func (*MockBlockchainClient) FilterLogs

func (m *MockBlockchainClient) FilterLogs(ctx context.Context, query api.FilterQuery) ([]api.Log, error)

type MockChainPoller

type MockChainPoller struct {
	mock.Mock
}

MockChainPoller implements the ChainPollerInterface for testing.

func (*MockChainPoller) FilterLogs

func (m *MockChainPoller) FilterLogs(ctx context.Context, filterQueries []api.FilterQuery) ([]api.Log, error)

Directories

Path Synopsis
File: internal/chain_poller/chain_poller.go
File: internal/chain_poller/chain_poller.go
File: internal/chain_poller_service/chain_poller_service.go
File: internal/chain_poller_service/chain_poller_service.go
File: internal/subscription_manager/subscription_manager.go
File: internal/subscription_manager/subscription_manager.go

Jump to

Keyboard shortcuts

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