app

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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 Server

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

Server implements the application server. The application server is used to serve the React app and the health endpoint.

func New

func New(isDevelopment bool) (*Server, error)

New return a new application server. It creates the underlying http server, with the defined address from the app.address flag. When you haven't build the React app via "yarn build" you can skip serving of the frontend, by passing an empty localtion for the app.assets flag.

func (*Server) Start

func (s *Server) Start()

Start starts serving the application server.

func (*Server) Stop

func (s *Server) Stop()

Stop terminates the application server gracefully.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL