handlers

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

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

func Healthz

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

Healthz route is UNAUTHENTICATED

func JSON

func JSON(w http.ResponseWriter, code int, payload interface{})

func ListConfigGroupItems

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

func ListConfigGroups

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

func ListConfigItemValues

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

func StreamJSON

func StreamJSON(c *websocket.Conn, payload interface{})

func UpdateConfigItemValues

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

Types

type HealthzResponse

type HealthzResponse struct {
	Version string         `json:"version"`
	GitSHA  string         `json:"gitSha"`
	Status  StatusResponse `json:"status"`
}

type Item

type Item struct {
	Name string `json:"name"`
}

type ListConfigGroupItemsResponse

type ListConfigGroupItemsResponse struct {
	GroupName string                 `json:"groupName"`
	Schema    string                 `json:"schema"`
	Values    map[string]interface{} `json:"values"`
	Error     string                 `json:"error,omitempty"`
}

type ListConfigGroupsResponse

type ListConfigGroupsResponse struct {
	AppName string               `json:"appName"`
	Groups  []*configtypes.Group `json:"groups"`
	Error   string               `json:"error,omitempty"`
}

type ListConfigItemValuesReeponse

type ListConfigItemValuesReeponse struct {
	Values map[string]interface{} `json:"values"`
	Error  string                 `json:"error,omitempty"`
}

type StatusResponse

type StatusResponse struct {
}

type UpdateConfigItemValuesRequest

type UpdateConfigItemValuesRequest struct {
	Items []*configtypes.ItemValue `json:"items"`
}

type UpdateConfigItemValuesResponse

type UpdateConfigItemValuesResponse struct {
	Error string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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