httpsvr

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

HTTPServer is an implementation for IHTTPServer

func (*HTTPServer) Initialize

func (s *HTTPServer) Initialize() IHTTPServer

Initialize initiates new http server

func (*HTTPServer) Server

func (s *HTTPServer) Server() *echo.Echo

Server returns echo.Echo object server

func (*HTTPServer) Start

func (s *HTTPServer) Start(debug bool)

Start starts http server

type IHTTPServer

type IHTTPServer interface {
	Initialize() IHTTPServer
	Server() *echo.Echo
	Start(debug bool)
}

IHTTPServer is an interface for http server

func New

func New() IHTTPServer

New initiates new http server object

Jump to

Keyboard shortcuts

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