server

package
v0.0.0-...-fafc1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 7 Imported by: 0

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 templating

func (*Server) Start

func (s *Server) Start(port string)

Start Server functionality

type Template

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

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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