httpsvc

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package httpsvc provides a HTTP/1.x Service which is compatible with the workgroup.Group API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Addr string
	Port int

	logrus.FieldLogger
	http.ServeMux
}

Service is a HTTP/1.x endpoint which is compatible with the workgroup.Group API.

func (*Service) Start

func (svc *Service) Start(stop <-chan struct{}) (err error)

Start fulfills the g.Start contract. When stop is closed the http server will shutdown.

Jump to

Keyboard shortcuts

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