server

package
v0.0.0-...-746469e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentBackend

type AgentBackend struct {
	*updatehub.UpdateHub
}

func NewAgentBackend

func NewAgentBackend(uh *updatehub.UpdateHub) (*AgentBackend, error)

type LocalServer

type LocalServer struct {
	// contains filtered or unexported fields
}

func NewLocalServer

func NewLocalServer(updatePackage *UpdatePackage) (*LocalServer, error)

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(backend *AgentBackend) *Router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

type UpdatePackage

type UpdatePackage struct {
	// contains filtered or unexported fields
}

func NewUpdatePackage

func NewUpdatePackage(f *os.File) (*UpdatePackage, error)

Jump to

Keyboard shortcuts

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