upgradeservice

package
v1.112.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(w http.ResponseWriter, r *http.Request)

Proxy proxies the request to the app's upgrade service.

func Serve

func Serve(params types.UpgradeServiceParams) error

func Start

func Start(params types.UpgradeServiceParams) (finalError error)

Start spins up an upgrade service for an app in the background on a random port and waits for it to be ready. If an upgrade service is already running for the app, it will be stopped and a new one will be started.

func Stop

func Stop(appSlug string)

Stop stops the upgrade service for an app.

Types

type UpgradeService

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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