Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tier1App ¶
func NewTier1 ¶
func NewTier1(logger *zap.Logger, config *Tier1Config, modules *Tier1Modules) *Tier1App
func (*Tier1App) HealthCheck ¶
type Tier1Config ¶
type Tier1Config struct {
MergedBlocksStoreURL string
OneBlocksStoreURL string
ForkedBlocksStoreURL string
BlockStreamAddr string // gRPC endpoint to get real-time blocks, can be "" in which live streams is disabled
GRPCListenAddr string // gRPC address where this app will listen to
GRPCShutdownGracePeriod time.Duration // The duration we allow for gRPC connections to terminate gracefully prior forcing shutdown
ServiceDiscoveryURL *url.URL
StateStoreURL string
StateStoreDefaultTag string
StateBundleSize uint64
BlockType string
MaxSubrequests uint64
SubrequestsEndpoint string
SubrequestsInsecure bool
SubrequestsPlaintext bool
WASMExtensions []wasm.WASMExtensioner
PipelineOptions []pipeline.PipelineOptioner
RequestStats bool
Tracing bool
}
func (*Tier1Config) Validate ¶
func (config *Tier1Config) Validate() error
Validate inspects itself to determine if the current config is valid according to substreams rules.
type Tier1Modules ¶ added in v1.1.9
type Tier1Modules struct {
// Required dependencies
Authenticator dauth.Authenticator
HeadTimeDriftMetric *dmetrics.HeadTimeDrift
HeadBlockNumberMetric *dmetrics.HeadBlockNum
}
type Tier2App ¶
func (*Tier2App) HealthCheck ¶
type Tier2Config ¶
type Tier2Config struct {
MergedBlocksStoreURL string
GRPCListenAddr string // gRPC address where this app will listen to
ServiceDiscoveryURL *url.URL
StateStoreURL string
StateStoreDefaultTag string
StateBundleSize uint64
BlockType string
WASMExtensions []wasm.WASMExtensioner
PipelineOptions []pipeline.PipelineOptioner
RequestStats bool
Tracing bool
}
func (*Tier2Config) Validate ¶
func (config *Tier2Config) Validate() error
Validate inspects itself to determine if the current config is valid according to substreams rules.
Click to show internal directories.
Click to hide internal directories.