service

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 26 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrSendBlock

type ErrSendBlock struct {
	// contains filtered or unexported fields
}

func NewErrSendBlock

func NewErrSendBlock(inner error) ErrSendBlock

func (ErrSendBlock) Error

func (e ErrSendBlock) Error() string

type Option

type Option func(*Service)

func WithCacheEnabled added in v0.0.19

func WithCacheEnabled(cacheEnabled bool) Option

func WithOutCacheSaveInterval

func WithOutCacheSaveInterval(block uint64) Option

func WithPartialMode

func WithPartialMode() Option

func WithPipelineOptions

func WithPipelineOptions(f pipeline.PipelineOptioner) Option

func WithStoresSaveInterval

func WithStoresSaveInterval(block uint64) Option

func WithWASMExtension

func WithWASMExtension(ext wasm.WASMExtensioner) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(stateStore dstore.Store, blockType string, grpcClientFactory substreams.GrpcClientFactory, parallelSubRequests int, blockRangeSizeSubRequests int, opts ...Option) *Service

func (*Service) BaseStateStore

func (s *Service) BaseStateStore() dstore.Store

func (*Service) BlockType

func (s *Service) BlockType() string

func (*Service) Blocks

func (s *Service) Blocks(request *pbsubstreams.Request, streamSrv pbsubstreams.Stream_BlocksServer) error

func (*Service) Register

func (s *Service) Register(firehoseServer *firehoseServer.Server, streamFactory *firehose.StreamFactory, logger *zap.Logger)

func (*Service) WasmExtensions

func (s *Service) WasmExtensions() []wasm.WASMExtensioner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL