api

package
v0.0.0-...-6ba0ecf Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumFetcher

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

EthereumFetcher represents the main server for the Ethereum fetcher.

func NewEthereumFetcher

func NewEthereumFetcher(db *gorm.DB, client *ethclient.Client, ethurl string) *EthereumFetcher

NewEthereumFetcher initializes and returns a new EthereumFetcher.

func (*EthereumFetcher) Listen

func (ef *EthereumFetcher) Listen() error

Listen starts the HTTP server and implements graceful shutdown.

type HandleManager

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

HandleManager manages the setup and initialization of routes and handlers.

func NewHandleManager

func NewHandleManager(db *gorm.DB, client *ethclient.Client, ethurl string) *HandleManager

NewHandleManager creates a new HandleManager with the given database, Ethereum client, and Ethereum URL.

func (*HandleManager) InitRouter

func (hm *HandleManager) InitRouter() *gin.Engine

InitRouter initializes all routes and their respective handlers.

Jump to

Keyboard shortcuts

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