server

package
v0.0.0-...-cd49cae Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package server deals with the initialization of the server as well as the listening and handling of resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents an instance of the server and all the dependencies required across it.

func New

func New() (*Server, error)

New constructs a new server.

The server includes a mux.Router pointer, and an sql.DB pointer

func (*Server) Start

func (s *Server) Start() error

Start starts a server.

Jump to

Keyboard shortcuts

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