Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoServer ¶ added in v1.10.0
type InfoServer interface { Init(ctx context.Context, fhub *hub.ForkableHub, mergedBlocksStore dstore.Store, oneBlockStore dstore.Store, logger *zap.Logger) error Info(ctx context.Context, request *pbfirehose.InfoRequest) (*pbfirehose.InfoResponse, error) }
type InfoServerWrapper ¶ added in v1.10.0
type InfoServerWrapper struct {
// contains filtered or unexported fields
}
func (*InfoServerWrapper) Info ¶ added in v1.10.0
func (i *InfoServerWrapper) Info(ctx context.Context, req *connect.Request[pbfirehose.InfoRequest]) (*connect.Response[pbfirehose.InfoResponse], error)
Info implements pbsubstreamsrpcconnect.EndpointInfoHandler.
type Tier1App ¶
func NewTier1 ¶
func NewTier1(logger *zap.Logger, config *Tier1Config, modules *Tier1Modules) *Tier1App
func (*Tier1App) HealthCheck ¶
type Tier1Config ¶
type Tier1Config struct { MeteringConfig string 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 BlockExecutionTimeout time.Duration TmpDir string StateStoreURL string StateStoreDefaultTag string BlockType string StateBundleSize uint64 EnforceCompression bool // refuse incoming requests that do not accept gzip compression (ConnectRPC or GRPC) ActiveRequestsSoftLimit int // maximum number of active requests a tier1 app can have with external clients before starting to advertise itself as unready in the health check ActiveRequestsHardLimit int // maximum number of active requests a tier1 app can have with external clients, refuse with CodeUnavailable if reached MaxSubrequests uint64 SubrequestsEndpoint string SubrequestsInsecure bool SubrequestsPlaintext bool WASMExtensions wasm.WASMExtensioner 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 CheckPendingShutDown func() bool InfoServer InfoServer }
type Tier2App ¶
func NewTier2 ¶
func NewTier2(logger *zap.Logger, config *Tier2Config, modules *Tier2Modules) *Tier2App
func (*Tier2App) HealthCheck ¶
type Tier2Config ¶
type Tier2Config struct { GRPCListenAddr string // gRPC address where this app will listen to ServiceDiscoveryURL *url.URL PipelineOptions []pipeline.Option MaximumConcurrentRequests uint64 WASMExtensions wasm.WASMExtensioner BlockExecutionTimeout time.Duration TmpDir string 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.
type Tier2Modules ¶ added in v1.3.2
type Tier2Modules struct {
CheckPendingShutDown func() bool
}
Click to show internal directories.
Click to hide internal directories.