Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidValue = errors.New("invalid value")
ErrInvalidValue signals that an invalid value has been provided
var ErrNilHTTPClientWrapper = errors.New("nil http client wrapper")
ErrNilHTTPClientWrapper signals that a nil http client wrapper has been provided
var ErrNilHasher = errors.New("hasher is nil")
ErrNilHasher is raised when a valid hasher is expected but nil used
var ErrNilMarshaller = errors.New("nil marshaller")
ErrNilMarshaller signals that a nil marshaller has been provided
var ErrNilPubKeyConverter = errors.New("nil pub key converter")
ErrNilPubKeyConverter signals that a nil pubkey converter has been provided
var ErrNilTransactionsPool = errors.New("nil transactions pool")
ErrNilTransactionsPool signals that a nil transactions pool was 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 Hasher hashing.Hasher PubKeyConverter core.PubkeyConverter }
ArgsEventNotifier defines the arguments needed for event notifier creation
type FinalizedBlock ¶
type FinalizedBlock struct {
Hash string `json:"hash"`
}
FinalizedBlock holds finalized block data