server

package
v0.0.0-...-7ac822b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 4 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 interface {
	Instance() *echo.Echo
	Setup(*ServerConfig, func())
	Shutdown()
}

Server is an interface which provides method signatures for an HTTP server

func New

func New() Server

New returns a new instance of an echo HTTP server

type ServerConfig

type ServerConfig struct {
	Port    string
	CertDir string
	CrtFile string
	KeyFile string
}

Jump to

Keyboard shortcuts

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