srv

package
v0.0.0-...-7baeb4b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Service      svc.Service
	ServiceTypes map[string]svctype.ServiceType
}

Handler handles the default endpoint by emulating its Service.

func HandlerFromServiceGraphYAML

func HandlerFromServiceGraphYAML(
	path string, serviceName string) (handler Handler, err error)

HandlerFromServiceGraphYAML makes a handler to emulate the service with name serviceName in the service graph represented by the YAML file at path.

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(
	writer http.ResponseWriter, request *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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