server

package
v0.0.0-...-424f5ae Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQLDB

func GetSQLDB(cfg config.Config) *gorm.DB

func Init

func Init(db *gorm.DB) error

Types

type HTTPService

type HTTPService struct {
}

func NewHTTPServer

func NewHTTPServer() HTTPService

func (HTTPService) RegisterHandler

func (s HTTPService) RegisterHandler(e *echo.Echo)

type Response

type Response struct {
	Title   string `json:"title"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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