Documentation ¶
Index ¶
- type Allocation
- type ChainHeadBlock
- type Chains
- type CostModel
- type Epoch
- type FatalError
- type GeoLocation
- type GraphNetwork
- type GraphService
- func (gs *GraphService) DeleteIndexingRule(deploymentID string) (bool, error)
- func (gs *GraphService) GetActiveAllocations(indexer string) ([]Allocation, error)
- func (gs *GraphService) GetClosedAllocations(subgraph string, epoch int) ([]Allocation, error)
- func (gs *GraphService) GetCurrentEpoch() (GraphNetwork, error)
- func (gs *GraphService) GetEpochInfo(epochNumber int) (Epoch, error)
- func (gs *GraphService) GetIndexerInfo(indexer string) (Indexer, error)
- func (gs *GraphService) GetIndexingRule(id string) (IndexingRule, error)
- func (gs *GraphService) GetIndexingStatuses() ([]IndexingStatus, error)
- func (gs *GraphService) GetModelsWithVariables() ([]CostModel, error)
- func (gs *GraphService) GetProofOfIndexing(blockNumber int, blockHash, indexerAddress, subgraph string) (ProofOfIndexing, error)
- func (gs *GraphService) GetStatus() (Status, error)
- func (gs *GraphService) GetSubgraphDeploymentsSignalled() ([]SubgraphDeployment, error)
- func (gs *GraphService) SetModel(model CostModel) (CostModel, error)
- type Indexer
- type IndexerEndpoint
- type IndexerEndpointTest
- type IndexerRegistration
- type IndexingRule
- type IndexingStatus
- type LatestBlock
- type ProofOfIndexing
- type Status
- type SubgraphDeployment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocation ¶ added in v0.0.5
type ChainHeadBlock ¶ added in v0.0.9
type ChainHeadBlock struct {
Number string `json:"number"`
}
type Chains ¶ added in v0.0.9
type Chains struct { ChainHeadBlock ChainHeadBlock `json:"chainHeadBlock"` LatestBlock LatestBlock `json:"latestBlock"` Network string `json:"network"` }
type FatalError ¶ added in v0.0.9
type FatalError struct {
Handler interface{} `json:"handler"`
}
type GeoLocation ¶
type GraphNetwork ¶ added in v0.0.9
type GraphNetwork struct {
CurrentEpoch int
}
type GraphService ¶
GraphService stores graphql client
func (*GraphService) DeleteIndexingRule ¶
func (gs *GraphService) DeleteIndexingRule(deploymentID string) (bool, error)
func (*GraphService) GetActiveAllocations ¶ added in v0.0.5
func (gs *GraphService) GetActiveAllocations(indexer string) ([]Allocation, error)
func (*GraphService) GetClosedAllocations ¶ added in v0.0.10
func (gs *GraphService) GetClosedAllocations(subgraph string, epoch int) ([]Allocation, error)
func (*GraphService) GetCurrentEpoch ¶ added in v0.0.6
func (gs *GraphService) GetCurrentEpoch() (GraphNetwork, error)
func (*GraphService) GetEpochInfo ¶ added in v0.0.9
func (gs *GraphService) GetEpochInfo(epochNumber int) (Epoch, error)
func (*GraphService) GetIndexerInfo ¶ added in v0.0.5
func (gs *GraphService) GetIndexerInfo(indexer string) (Indexer, error)
func (*GraphService) GetIndexingRule ¶
func (gs *GraphService) GetIndexingRule(id string) (IndexingRule, error)
func (*GraphService) GetIndexingStatuses ¶ added in v0.0.9
func (gs *GraphService) GetIndexingStatuses() ([]IndexingStatus, error)
func (*GraphService) GetModelsWithVariables ¶
func (gs *GraphService) GetModelsWithVariables() ([]CostModel, error)
func (*GraphService) GetProofOfIndexing ¶ added in v0.0.9
func (gs *GraphService) GetProofOfIndexing(blockNumber int, blockHash, indexerAddress, subgraph string) (ProofOfIndexing, error)
func (*GraphService) GetStatus ¶
func (gs *GraphService) GetStatus() (Status, error)
GetStatus queries status
func (*GraphService) GetSubgraphDeploymentsSignalled ¶ added in v0.0.7
func (gs *GraphService) GetSubgraphDeploymentsSignalled() ([]SubgraphDeployment, error)
type IndexerEndpoint ¶
type IndexerEndpoint struct { URL string Healthy bool Tests []IndexerEndpointTest }
type IndexerEndpointTest ¶
type IndexerRegistration ¶
type IndexerRegistration struct { URL string Address string Registered bool Location GeoLocation }
type IndexingRule ¶
type IndexingStatus ¶ added in v0.0.9
type IndexingStatus struct { Chains []Chains `json:"chains"` FatalError FatalError `json:"fatalError"` Node string `json:"node"` Subgraph string `json:"subgraph"` Health string `json:"health"` }
type LatestBlock ¶ added in v0.0.9
type LatestBlock struct {
Number string `json:"number"`
}
type ProofOfIndexing ¶ added in v0.0.9
type ProofOfIndexing string
type Status ¶
type Status struct { IndexerRegistration IndexerRegistration IndexerEndpoints struct { Service IndexerEndpoint Channels IndexerEndpoint Status IndexerEndpoint } IndexingRules []IndexingRule }
Click to show internal directories.
Click to hide internal directories.