server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server holds server related struct and methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v0.4.3

type Controller interface {
	Mux() *mux.Router
}

Controller abstracts the controller layer.

type Server added in v0.4.3

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

Server - holds server struct data

func New

func New(controller Controller, address string) Server

New - instantiates a new Server

func (*Server) ServeHTTP added in v0.4.3

func (c *Server) ServeHTTP()

ServeHTTP - Starts a new server and allows to shut it down gracefully.

Jump to

Keyboard shortcuts

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