app

package
v0.0.0-...-3f88e16 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartFromCLI

func StartFromCLI(ctx *cli.Context) error

Types

type App

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

func New

func New(cnf *gotrix.AppConfig) (*App, error)

func (*App) Components

func (app *App) Components() map[string]gotrix.ComponentWrapper

func (*App) DB

func (app *App) DB() *reform.DB

func (*App) Run

func (app *App) Run() error

func (*App) ServeHTTP

func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StartT

type StartT struct {
	Port int `cli:"port" dft:"8080" usage:"Application port to listen"`
}

Jump to

Keyboard shortcuts

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