models

package
v0.0.0-...-14f6295 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CelestiaNode

type CelestiaNode struct {
	// gorm.Model:
	ID        uint      `gorm:"primarykey"`
	CreatedAt time.Time `gorm:"index"`
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
	// ----------
	NodeId                                      string `gorm:"index;type:varchar(255);not null"`
	NodeType                                    receiver.NodeType
	Version                                     string `gorm:"index;type:varchar(255);"`
	LastPfbTimestamp                            time.Time
	PfbCount                                    uint64
	Head                                        uint64
	NetworkHeight                               uint64 `gorm:"index;"`
	DasLatestSampledTimestamp                   time.Time
	DasNetworkHead                              uint64
	DasSampledChainHead                         uint64
	DasSampledHeadersCounter                    uint64
	DasTotalSampledHeaders                      uint64
	TotalSyncedHeaders                          uint64
	StartTime                                   time.Time
	LastRestartTime                             time.Time
	NodeRuntimeCounterInSeconds                 uint64
	LastAccumulativeNodeRuntimeCounterInSeconds uint64
	Uptime                                      float32
	NewUptime                                   float32
	NewRuntime                                  int64
}

type NodeVersion

type NodeVersion struct {
	NodeId    string    `json:"node_id"`
	Version   string    `json:"version"`
	CreatedAt time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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