 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( MetricsNamespace = "op_indexer_api" // Endpoint paths DocsPath = "/docs" HealthPath = "/healthz" DepositsPath = "/api/v0/deposits/" WithdrawalsPath = "/api/v0/withdrawals/" SupplyPath = "/api/v0/supply" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIService ¶ added in v1.4.2
type APIService struct {
	// contains filtered or unexported fields
}
    Api ... Indexer API struct TODO : Structured error responses
func (*APIService) Addr ¶ added in v1.4.2
func (a *APIService) Addr() string
Addr ... returns the address that the HTTP server is listening on (excl. http:// prefix, just the host and port)
func (*APIService) Stopped ¶ added in v1.4.2
func (a *APIService) Stopped() bool
type Config ¶ added in v1.4.2
type Config struct {
	DB            DBConnector
	HTTPServer    config.ServerConfig
	MetricsServer config.ServerConfig
}
    Config for the API service
type DB ¶ added in v1.4.2
type DB struct {
	BridgeTransfers database.BridgeTransfersView
	Closer          func() error
}
    DB represents the abstract DB access the API has.
type DBConfigConnector ¶ added in v1.4.2
DBConfigConnector implements a fully config based DBConnector
type DBConnector ¶ added in v1.4.2
DBConnector is an interface: the config may provide different ways to access the DB. This is implemented in tests to provide custom DB views, or share the DB with other services.
type TestDBConnector ¶ added in v1.4.2
type TestDBConnector struct {
	BridgeTransfers database.BridgeTransfersView
}
     Click to show internal directories. 
   Click to hide internal directories.