app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package app is the core of the application which manages both the back-end and front-end

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the type in charge of handling application lifecycle

func NewApp

func NewApp(cfg *Config) *App

NewApp initializes a new instance of app with a logger and the provided configuration

func (*App) Close

func (a *App) Close()

Close performs cleanup operations

func (*App) Init

func (a *App) Init() error

Init initializes the app's dependencies

func (*App) Run

func (a *App) Run() error

Run executes the application's backend and frontend

type Config

type Config struct {
	State state.Config
	Gui   gui.Config
}

Config is the application configuration

Jump to

Keyboard shortcuts

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