ui

package
v0.0.0-...-92b1827 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "ui"

ControllerName defines the name of the ui controller

Variables

This section is empty.

Functions

func NewController

func NewController(ctx gousu.IContext) gousu.IUIController

NewController creates a new instance of the ui controller

Types

type Controller

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

Controller is the core controller running the ui

func (*Controller) Health

func (c *Controller) Health() error

Health always returns nil (healthy)

func (*Controller) Name

func (c *Controller) Name() string

Name returns the name of the controller defined by ControllerName

func (*Controller) Run

func (c *Controller) Run(chan os.Signal) error

Run is the core routine running the ui

func (*Controller) Start

func (c *Controller) Start() error

Start creates a new window making it ready for being displayed

func (*Controller) Stop

func (c *Controller) Stop() error

Stop destroys the window causing the program to exit

type DownloadStatus

type DownloadStatus struct {
	UID        string `json:"uid"`
	ProfileID  int64  `json:"profile_id"`
	BucketName string `json:"bucket_name"`
	ObjectKey  string `json:"object_key"`
	Loaded     int64  `json:"loaded"`
	Total      int64  `json:"total"`
	Finished   bool   `json:"finished"`
	Error      error  `json:"error"`
}

DownloadStatus contains the status & progress of a download

type IController

type IController interface {
	gousu.IUIController
}

IController defines the interface of UIController

Jump to

Keyboard shortcuts

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