omaha

package
v0.0.0-...-1a1f412 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrMalformedRequest error indicates that the omaha request it has
	// received is malformed.
	ErrMalformedRequest = errors.New("omaha: request is malformed")

	// ErrMalformedResponse error indicates that the omaha response it wants to
	// send is malformed.
	ErrMalformedResponse = errors.New("omaha: response is malformed")
)

Functions

This section is empty.

Types

type Handler

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

Handler represents a component capable of processing Omaha requests. It uses the CoreRoller API to get packages updates, process events, etc.

func NewHandler

func NewHandler(crApi *api.API) *Handler

NewHandler creates a new Handler instance.

func (*Handler) Handle

func (h *Handler) Handle(rawReq io.Reader, respWriter io.Writer, ip string) error

Handle is in charge of processing an Omaha request.

Jump to

Keyboard shortcuts

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