onefrontend

package
v0.0.0-...-c32710b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package onefrontend implements a web-server for the unified frontend components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Cookies        config.CookieSettings
	LogConfig      config.LogConfig
	JWTSecurity    config.JwtSettings
	Cors           config.CorsSettings
	Upload         config.UploadSettings
	BasePath       string
	AssetDir       string
	AssetPrefix    string
	FrontendDir    string
	FrontendPrefix string
	ErrorPath      string
	StartURL       string
	Environment    config.Environment
	Version        types.VersionInfo
	Log            logging.Logger
	// contains filtered or unexported fields
}

Server configures a HTTP server

func (*Server) MapRoutes

func (s *Server) MapRoutes()

MapRoutes defines and configures the application routes

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP turns the server into a http.Handler

Directories

Path Synopsis
Package config defines the customization/configuration of the application
Package config defines the customization/configuration of the application

Jump to

Keyboard shortcuts

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