simulator

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

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