notifier

package
v1.11.3-devnet-patch Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: GPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValue = errors.New("invalid value")

ErrInvalidValue signals that an invalid value has been provided

View Source
var ErrNilBlockContainerHandler = errors.New("nil bock container handler")

ErrNilBlockContainerHandler signals that a nil block container handler has been provided

View Source
var ErrNilHTTPClientWrapper = errors.New("nil http client wrapper")

ErrNilHTTPClientWrapper signals that a nil http client wrapper has been provided

View Source
var ErrNilMarshaller = errors.New("nil marshaller")

ErrNilMarshaller signals that a nil marshaller has been provided

Functions

func NewEventNotifier

func NewEventNotifier(args ArgsEventNotifier) (*eventNotifier, error)

NewEventNotifier creates a new instance of the eventNotifier It implements all methods of process.Indexer

func NewHTTPWrapperClient

func NewHTTPWrapperClient(args HTTPClientWrapperArgs) (*httpClientWrapper, error)

NewHTTPWrapperClient creates an instance of httpClient which is a wrapper for http.Client

Types

type ArgsEventNotifier

type ArgsEventNotifier struct {
	HttpClient     httpClientHandler
	Marshaller     marshal.Marshalizer
	BlockContainer BlockContainerHandler
}

ArgsEventNotifier defines the arguments needed for event notifier creation

type BlockContainerHandler added in v1.6.0

type BlockContainerHandler interface {
	Get(headerType core.HeaderType) (block.EmptyBlockCreator, error)
}

BlockContainerHandler defines what a block container should be able to do

type HTTPClientWrapperArgs

type HTTPClientWrapperArgs struct {
	UseAuthorization  bool
	Username          string
	Password          string
	BaseUrl           string
	RequestTimeoutSec int
}

HTTPClientWrapperArgs defines the arguments needed for http client creation

Jump to

Keyboard shortcuts

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