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) 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
Click to show internal directories.
Click to hide internal directories.