logger

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package logger handles logging various sinner events and errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportSinnerError

func ReportSinnerError(err error, chainID uint32, errorType ErrorType)

ReportSinnerError reports an error that occurs anywhere in sinner.

nolint:exhaustive

Types

type ErrorType

type ErrorType int

ErrorType is a type of error.

const (
	// ContextCancelled is returned when the context is canceled.
	ContextCancelled ErrorType = iota
	// ScribeFetchFailure is returned when a scribe related query fails.
	ScribeFetchFailure
	// SinnerIndexingFailure is for when the sinner indexer fails.
	SinnerIndexingFailure
	// UnknownTopic is for when an unknown topic is encountered while parsing.
	UnknownTopic
)

type StatusType

type StatusType int

StatusType is a type of status for a process in scribe.

const (
	// InitiatingIndexing is returned when a contract begins indexing.
	InitiatingIndexing StatusType = iota
	// CreatingSQLStore is returned when a SQL store is being created.
	CreatingSQLStore
)

Jump to

Keyboard shortcuts

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