server

package
Version: v0.0.0-...-ac624b7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: MIT Imports: 6 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 {
	*echo.Echo
	DB *sqlx.DB
}

Server is the API HTTP server (just wraps echo.Echo)

func NewServer

func NewServer() *Server

NewServer creates a new API server with all middleware configured but no routes

func (*Server) Run

func (s *Server) Run() error

Run begins listening on the configured address

Source Files

Directories

Path Synopsis
Package config handles all application configuration.
Package config handles all application configuration.
controllers
Package custommiddleware implements echo middleware This file was orignally copied from https://github.com/bakatz/echo-logrusmiddleware which was out of date.
Package custommiddleware implements echo middleware This file was orignally copied from https://github.com/bakatz/echo-logrusmiddleware which was out of date.

Jump to

Keyboard shortcuts

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