kernel

package
v0.0.0-...-b610cb1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Server *http.Server
	Router *mux.Router
	Logger *zap.Logger
	Config *config.Config
}

Application is our main application struct.

func Boot

func Boot() *Application

Boot - Lets boot our Application with stuff.

func (*Application) Respond

func (app *Application) Respond(response http.ResponseWriter, request *http.Request, data interface{}, status int)

Respond - simplify responding from the API

func (*Application) Run

func (app *Application) Run()

Run - Lets run our Application server or panic.

func (*Application) WaitForShutdown

func (app *Application) WaitForShutdown()

WaitForShutdown - Lets wait for a shutdown signal and shutdown gracefully

Jump to

Keyboard shortcuts

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