Help us shape the future of Go! Take the 2026 Go Developer Survey

rest

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Host   string
	Path   string
	Scheme ServiceScheme
}

func NewEndpoint

func NewEndpoint(input string) (*Endpoint, error)

func (*Endpoint) ToCmdLine

func (ep *Endpoint) ToCmdLine() ([]string, error)

type ServiceScheme

type ServiceScheme int
const (
	TCP ServiceScheme = iota
	Unix
	None
	HTTP
)

type VFKitService

type VFKitService struct {
	*Endpoint
	// contains filtered or unexported fields
}

VFKitService is used for the restful service; it describes the variables of the service like host/path but also has the router object

func NewServer

func NewServer(inspector VirtualMachineInspector, stateHandler VirtualMachineStateHandler, endpoint string) (*VFKitService, error)

NewServer creates a new restful service

func (*VFKitService) Start

func (v *VFKitService) Start()

Start initiates the already configured gin service

type VirtualMachineInspector

type VirtualMachineInspector interface {
	Inspect(c *gin.Context)
}

type VirtualMachineStateHandler

type VirtualMachineStateHandler interface {
	GetVMState(c *gin.Context)
	SetVMState(c *gin.Context)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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