Documentation
¶
Index ¶
- func RunPortalLoop(ctx context.Context, portalLoopHandler PortalLoopHandler, force bool) error
- type PortalLoopHandler
- func (plh PortalLoopHandler) BackupTXs(ctx context.Context) error
- func (plh PortalLoopHandler) GetContainerName() string
- func (plh *PortalLoopHandler) LockTraefikAccess() error
- func (plh *PortalLoopHandler) ProxyRemoveContainers(ctx context.Context) error
- func (plh *PortalLoopHandler) UnlockTraefikAccess() error
- func (plh *PortalLoopHandler) UpdateTraefikPortalLoopUrl() error
- func (plh *PortalLoopHandler) WaitStartedLoop() error
- type Result
- type SyncInfo
- type TendermintStatus
- type TraefikMode
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 (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 TendermintStatus ¶
type TendermintStatus struct {
Result Result `json:"result"`
}
type TraefikMode ¶
type TraefikMode string