server

package
v0.0.0-...-33a8802 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package server plugs the api and the static content routers into itself and serves them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	DatabaseInstance string
	DatabaseName     string
	Host             string
	Port             int
	RootUserAPIKey   string
}

Server represents a HTTP server which serves the REST API and static content.

func (Server) Initialize

func (server Server) Initialize() (err error)

Initialize initalizes the server.

func (Server) Shutdown

func (server Server) Shutdown() (err error)

Shutdown shits the server down.

func (Server) Start

func (server Server) Start() (err error)

Start starts the server.

Jump to

Keyboard shortcuts

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