Documentation ¶
Index ¶
- type Option
- type Service
- func (s *Service) BaseStateStore() dstore.Store
- func (s *Service) BlockType() string
- func (s *Service) Blocks(request *pbsubstreams.Request, streamSrv pbsubstreams.Stream_BlocksServer) (grpcError error)
- func (s *Service) Register(server dgrpcserver.Server, mergedBlocksStore dstore.Store, ...)
- func (s *Service) TestBlocks(ctx context.Context, isSubRequest bool, request *pbsubstreams.Request, ...) error
- type StreamFactory
- type StreamFactoryFunc
- type Streamable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
func WithCacheSaveInterval ¶ added in v0.2.0
func WithMaxWasmFuelPerBlockModule ¶ added in v1.0.0
func WithPartialMode ¶
func WithPartialMode() Option
func WithPipelineOptions ¶
func WithPipelineOptions(f pipeline.PipelineOptioner) Option
func WithRequestStats ¶ added in v0.0.21
func WithRequestStats() Option
func WithWASMExtension ¶
func WithWASMExtension(ext wasm.WASMExtensioner) Option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func TestNewService ¶ added in v0.1.0
func TestNewService(runtimeConfig config.RuntimeConfig, linearHandoffBlockNum uint64, streamFactoryFunc StreamFactoryFunc) *Service
func (*Service) BaseStateStore ¶
func (*Service) Blocks ¶
func (s *Service) Blocks(request *pbsubstreams.Request, streamSrv pbsubstreams.Stream_BlocksServer) (grpcError error)
func (*Service) TestBlocks ¶ added in v0.1.0
func (s *Service) TestBlocks(ctx context.Context, isSubRequest bool, request *pbsubstreams.Request, respFunc substreams.ResponseFunc) error
type StreamFactory ¶ added in v0.0.21
type StreamFactory struct {
// contains filtered or unexported fields
}
func (*StreamFactory) GetHeadBlock ¶ added in v1.0.2
func (s *StreamFactory) GetHeadBlock() (uint64, error)
func (*StreamFactory) GetRecentFinalBlock ¶ added in v0.1.0
func (s *StreamFactory) GetRecentFinalBlock() (uint64, error)
type StreamFactoryFunc ¶ added in v0.1.0
type Streamable ¶ added in v0.1.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.