httpd

package
v0.0.0-...-f00139d Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package httpd exposes the REST API of Mailmock.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is holding the HTTP server properties.

func NewServer

func NewServer(name string, host string, port string, logger log.Logger) *Server

NewServer creates a HTTP server.

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe(stop <-chan struct{}) error

ListenAndServe starts listening for clients connection and serves requests.

func (*Server) Routes

func (srv *Server) Routes() *chi.Mux

Routes returns a configured router for REST API serving.

Jump to

Keyboard shortcuts

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