model

package
v0.5.0-rc11 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Processed    *time.Time `bson:"processed"`
	Created      time.Time
	ErrorMessage string `bson:"error_message"`
	Height       int64  `bson:"height"`
	Status       Status
}

type Message added in v0.0.9

type Message struct {
	Created      time.Time
	ErrorMessage string `bson:"error_message"`
	Height       int64  `bson:"height"`
}

type Status

type Status uint8
const (
	StatusProcessing Status = 1 + iota
	StatusProcessed
	StatusError
)

func (Status) IsError

func (s Status) IsError() bool

func (Status) IsProcessed

func (s Status) IsProcessed() bool

func (Status) IsProcessing

func (s Status) IsProcessing() bool

func (Status) ToString

func (s Status) ToString() string

Jump to

Keyboard shortcuts

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