portalloop

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPortalLoop

func RunPortalLoop(ctx context.Context, portalLoopHandler PortalLoopHandler, force bool) error

Runs a Portal Loop routine Steps performed: - Check for an updated Gnoland Docker image (if not skip) - Backup existing txs using an existing Gnoland container / create new one - Kill the existing container - Create a new instance of Gnoland container that starts using the previous backup as txs in its genesis file - Wait genesis txs to be committed - Update reference to looped RPC node

Types

type PortalLoopHandler

type PortalLoopHandler struct {
	// contains filtered or unexported fields
}

func NewPortalLoopHandler

func NewPortalLoopHandler(cfg *cfg.CmdCfg, logger *slog.Logger) (*PortalLoopHandler, error)

func (PortalLoopHandler) BackupTXs

func (plh PortalLoopHandler) BackupTXs(ctx context.Context) error

Backups all the active transactions

func (PortalLoopHandler) GetContainerName

func (plh PortalLoopHandler) GetContainerName() string

Gets a container name from current time

func (*PortalLoopHandler) LockTraefikAccess

func (plh *PortalLoopHandler) LockTraefikAccess() error

Sets ReadOnly mode

func (*PortalLoopHandler) ProxyRemoveContainers

func (plh *PortalLoopHandler) ProxyRemoveContainers(ctx context.Context) error

Proxies the request to the Docker handler to remove existing Portal Lopp containers

func (*PortalLoopHandler) UnlockTraefikAccess

func (plh *PortalLoopHandler) UnlockTraefikAccess() error

Unsets ReadOnly mode

func (*PortalLoopHandler) UpdateTraefikPortalLoopUrl

func (plh *PortalLoopHandler) UpdateTraefikPortalLoopUrl() error

Replaces URL of Gno Portal Loop

func (*PortalLoopHandler) WaitStartedLoop

func (plh *PortalLoopHandler) WaitStartedLoop() error

Waits for the Loop to get started

type Result

type Result struct {
	SyncInfo SyncInfo `json:"sync_info"`
}

type SyncInfo

type SyncInfo struct {
	LatestBlockHeight string `json:"latest_block_height"`
}

type TendermintStatus

type TendermintStatus struct {
	Result Result `json:"result"`
}

type TraefikMode

type TraefikMode string

Jump to

Keyboard shortcuts

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