app

package
v0.0.0-...-ccce489 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start starts the app. Requires calling of Setup first.

Types

type App

type App struct {
	Fiber  *fiber.App
	Config Config
}

App represents an app instance and all of it's required resources.

var CurrentApp *App

CurrentApp represents the current app instance.

func Setup

func Setup() (*App, error)

Setup sets up the global app instance.

type Config

type Config struct {
	ListenAddress string `default:":3000" split_words:"true"`
	DBPath        string `default:"file::memory:?cache=shared" split_words:"true"`
	Debug         bool   `default:"false"`
}

Config represents the basic configuration required for the app on startup.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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