Back to godoc.org

Package server

v0.0.0-...-354a964
Latest Go to latest

The latest major version is .

Published: Sep 14, 2020 | License: MIT | Module: github.com/tempor1s/echo-boiler

Index

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