server

package
v0.0.0-...-354a964 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 5 Imported by: 0

README

server

This folder contains all the generalized logic for the server. Whether this be routes, new server logic, or whatever else.

Documentation

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 the server.

func New

func New(database *mongo.Database) *Server

NewServer creates a Server and instantiates the DB if not provided

func (*Server) Close

func (s *Server) Close()

Close stops the Server

func (*Server) Routes

func (s *Server) Routes()

Routes will setup all the routes and

func (*Server) Start

func (s *Server) Start(port string)

Start Server functionality

Jump to

Keyboard shortcuts

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