server

package
v0.0.0-...-97b5a5e Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcho

func NewEcho(cfg *config.Config) *echo.Echo

NewEcho returns a new instance of server

func SetProfiler

func SetProfiler(e *echo.Echo, hc HealthCheck)

Types

type HealthCheck

type HealthCheck struct {
}

func (*HealthCheck) Handle

func (h *HealthCheck) Handle(ec echo.Context) error

type Server

type Server struct {
	Config *config.Config
	Echo   *echo.Echo
	DB     *config.DB
}

func NewServer

func NewServer() (*Server, error)

NewServer returns new server

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown shutdown all services

func (*Server) Start

func (s *Server) Start() error

Start starts the echo server

Jump to

Keyboard shortcuts

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