Documentation
¶
Index ¶
- Constants
- Variables
- type ErrInvalidArg
- type Option
- func WithBlockIndexProvider(p bstream.BlockIndexProvider) Option
- func WithCursor(cursor *bstream.Cursor) Option
- func WithCustomStepTypeFilter(step bstream.StepType) Option
- func WithFileSourceHandlerMiddleware(mw func(source bstream.Handler) bstream.Handler) Option
- func WithFinalBlocksOnly() Option
- func WithLiveSourceHandlerMiddleware(mw func(source bstream.Handler) bstream.Handler) Option
- func WithLogger(logger *zap.Logger) Option
- func WithPreprocessFunc(pp bstream.PreprocessFunc, threads int) Option
- func WithPreprocessFuncDefaultThreadNumber(pp bstream.PreprocessFunc) Option
- func WithStopBlock(stopBlockNum uint64) Option
- func WithTargetCursor(cursor *bstream.Cursor) Option
- type Stream
Constants ¶
View Source
const DefaultPreprocessFuncThreadNumber = 4
Variables ¶
View Source
var ErrStopBlockReached = errors.New("stop block reached")
Functions ¶
This section is empty.
Types ¶
type ErrInvalidArg ¶
type ErrInvalidArg struct {
// contains filtered or unexported fields
}
func NewErrInvalidArg ¶
func NewErrInvalidArg(m string, args ...interface{}) *ErrInvalidArg
func (*ErrInvalidArg) Error ¶
func (e *ErrInvalidArg) Error() string
type Option ¶
type Option = func(s *Stream)
func WithBlockIndexProvider ¶
func WithBlockIndexProvider(p bstream.BlockIndexProvider) Option
func WithCursor ¶
func WithFinalBlocksOnly ¶
func WithFinalBlocksOnly() Option
func WithLogger ¶
func WithPreprocessFunc ¶
func WithPreprocessFunc(pp bstream.PreprocessFunc, threads int) Option
func WithPreprocessFuncDefaultThreadNumber ¶
func WithPreprocessFuncDefaultThreadNumber(pp bstream.PreprocessFunc) Option
func WithStopBlock ¶
func WithTargetCursor ¶
Click to show internal directories.
Click to hide internal directories.