simulator

package
v0.0.0-...-d5d7872 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(request *http.Request, writer http.ResponseWriter, val interface{}) bool

Decode decodes the request Body into val, returns true on success, otherwise false.

Types

type Handler

type Handler struct {
	URL *url.URL
	// contains filtered or unexported fields
}

Handler implements the Appliance API simulator

func New

func New(u *url.URL) *Handler

New creates a Handler instance

func (*Handler) Register

func (h *Handler) Register(s *simulator.Service, r *simulator.Registry)

Register Appliance Management API paths with the vapi simulator's http.ServeMux

Jump to

Keyboard shortcuts

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