server

package
v0.0.0-...-f4a8318 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port string
}

Config contains all web server configuration

type Server

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

Server holds web server components

func New

func New(c *Config) *Server

New returns a new web server

func (*Server) SetupRoutes

func (s *Server) SetupRoutes()

SetupRoutes configures middleware, routes, and handlers

func (*Server) Start

func (s *Server) Start()

Start runs the web server

Jump to

Keyboard shortcuts

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