core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *logrus.Logger

Logger return logger

Types

type App

type App interface {
	Init() error
	RegisterRoute(driver *Engine)
	Clean() error
}

App provides methods for controlling an app's lifecycle

type Context

type Context = echo.Context

Context is echo context

type Engine

type Engine = echo.Echo

Engine define http engine

func NewEngine

func NewEngine() *Engine

NewEngine give new http engine

type ErrorListener

type ErrorListener interface {
	OnError(err error, c Context)
}

type HTTPError

type HTTPError = echo.HTTPError

HTTPError define http error

type Server

type Server interface {
	Init() error
	Start()
	Exit(sig os.Signal)
}

Server provides methods for controlling server's lifecycle

func NewServer

func NewServer(services ...App) Server

NewServer return new server instance

Jump to

Keyboard shortcuts

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