http

package
v0.0.0-...-ae3c849 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRouter

type APIRouter struct {
	*httprouter.Router
	// contains filtered or unexported fields
}

APIRouter is an HTTP API for accessing app configurations.

func NewRouter

func NewRouter(cfg *config.Config) *APIRouter

NewRouter creates and returns a new APIRouter.

func (*APIRouter) GetApp

func (a *APIRouter) GetApp(w http.ResponseWriter, r *http.Request)

GetApp returns a specific app.

func (*APIRouter) GetAppConfig

func (a *APIRouter) GetAppConfig(w http.ResponseWriter, r *http.Request)

GetAppConfig returns a specific app's desired state.

func (*APIRouter) GetEnvironment

func (a *APIRouter) GetEnvironment(w http.ResponseWriter, r *http.Request)

GetEnvironment returns a specific app.

func (*APIRouter) ListApps

func (a *APIRouter) ListApps(w http.ResponseWriter, r *http.Request)

ListApps returns the list of configured apps.

Jump to

Keyboard shortcuts

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