model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 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

type Tx added in v1.0.0

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

Jump to

Keyboard shortcuts

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