srv

package
v0.0.0-...-e8a267e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

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
	// contains filtered or unexported fields
}

Handler handles the default endpoint by emulating its Service.

func HandlerFromServiceGraphYAML

func HandlerFromServiceGraphYAML(
	path string, serviceName string) (*Handler, 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