server

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(r *mux.Router, b *Backend)

Types

type Backend

type Backend struct {
	Agent guestagent.Agent
}

func (*Backend) GetEvents

func (b *Backend) GetEvents(w http.ResponseWriter, r *http.Request)

GetEvents is the handler for GET /v{N}/events.

func (*Backend) GetInfo

func (b *Backend) GetInfo(w http.ResponseWriter, r *http.Request)

GetInfo is the handler for GET /v{N}/info

Jump to

Keyboard shortcuts

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