model

package
v0.0.0-...-f0d86f2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Issue string = "issue"
	Fine  string = "fine"
)

Event types

View Source
const (
	Creating string = "creating"
	Deployed string = "deployed"
	Deleting string = "deleting"
	Error    string = "error"
)

Node states

View Source
const (
	Public  string = "public"
	Private string = "private"
)

Node network types

View Source
const (
	Full  string = "full"
	Fast  string = "fast"
	Light string = "light"
	Snap  string = "snap"
)

Node sync modes

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID          uint64 `gorm:"primary_key"`
	NodeID      uint64
	Type        string
	Title       string `gorm:"not null"`
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

Event is something that happened to a node

type Node

type Node struct {
	ID            uint64 `gorm:"primary_key"`
	Name          string `gorm:"not null;unique"`
	VMID          string
	CloudProvider string
	DomainName    string
	HasSSL        bool
	NetworkType   string `gorm:"not null"`
	NetworkID     uint64
	SyncMode      string
	APIKey        string
	Status        string `gorm:"not null"`
	Events        []Event
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

Node is a VM hosting a geth instance

Jump to

Keyboard shortcuts

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