backend

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: GPL-3.0, GPL-3.0-or-later Imports: 10 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 {
	Storage storage.Mediator
	// contains filtered or unexported fields
}

Server defines all of the server configuration used throughout

func NewServer

func NewServer(storageBackend storage.Mediator) Server

NewServer creates a new instance of the server when provided with a storage backend

func (*Server) BaseAddress

func (s *Server) BaseAddress() string

BaseAddress returns the servers public base address as configured.

func (*Server) HandleRequest

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

HandleRequest is the request handler and router for incoming requests from the frontend

Jump to

Keyboard shortcuts

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