service

package
v0.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 19 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 WithPartialMode

func WithPartialMode() Option

func WithPipelineOptions

func WithPipelineOptions(f pipeline.PipelineOptioner) Option

func WithStoresSaveInterval

func WithStoresSaveInterval(seconds 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, opts ...Option) *Service

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)

Jump to

Keyboard shortcuts

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