Back to

Package server

Latest Go to latest

The latest major version is .

Published: Sep 14, 2020 | License: MIT | Module:


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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier