Documentation
¶
Index ¶
- func BlockProposedCallback(rpcURL, beaconURL, networkName string, log types.Log)
- func GetBlobData(cfg *Config, blobHashes []string) ([]struct{ ... }, error)
- type CallbackFunc
- type Config
- type IndexedEvent
- type MongoDBClient
- type MongoDBConfig
- type NetworkConfig
- type Response
- type Server
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockProposedCallback ¶
BlockProposedCallback is a callback for the "BlockProposed" event.
Types ¶
type CallbackFunc ¶
CallbackFunc represents the type of the callback function for handling events.
type Config ¶
type Config struct { Networks []NetworkConfig MongoDB MongoDBConfig Server ServerConfig }
Config struct holds the overall configuration for the application.
type IndexedEvent ¶
type IndexedEvent struct { Contract string EventName string EventHash string Callback CallbackFunc }
IndexedEvent struct represents the configuration for an indexed event.
type MongoDBClient ¶
MongoDBClient holds the MongoDB client instance.
func NewMongoDBClient ¶
func NewMongoDBClient(cfg MongoDBConfig) (*MongoDBClient, error)
NewMongoDBClient creates a new MongoDB client.
func (*MongoDBClient) Close ¶
func (mc *MongoDBClient) Close()
Close closes the MongoDB client connection.
type MongoDBConfig ¶
MongoDBConfig holds the configuration for MongoDB.
type NetworkConfig ¶
type NetworkConfig struct { RPCURL string BeaconURL string // Add this field NetworkName string IndexedEvents []IndexedEvent }
NetworkConfig struct represents the configuration for a network.
type ServerConfig ¶
type ServerConfig struct {
Port string
}
ServerConfig struct represents the configuration for the api server.
Click to show internal directories.
Click to hide internal directories.