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.

        Source Files