httpsvc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPHandler

func NewHTTPHandler(logger logrus.FieldLogger, service Service) http.Handler

Types

type HTTPService

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

func (HTTPService) PostFeaturesStatus

func (s HTTPService) PostFeaturesStatus(w http.ResponseWriter, r *http.Request)

func (HTTPService) PostFeaturesStatusFeature

func (s HTTPService) PostFeaturesStatusFeature(w http.ResponseWriter, r *http.Request, feature string)

type Service

type Service interface {
	FeaturesStatus(ctx context.Context, req spec.FeaturesRequest, feature string) (*spec.FeaturesResponse, error)
}

Directories

Path Synopsis
Package mock_httpsvc is a generated GoMock package.
Package mock_httpsvc is a generated GoMock package.

Jump to

Keyboard shortcuts

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