http

package
v1.286.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(service *config.Configuration)

Register for HTTP.

Types

type Config

type Config struct {
	Application string `json:"application,omitempty"`
	Version     string `json:"version,omitempty"`
	Environment string `json:"environment,omitempty"`
	Continent   string `json:"continent,omitempty"`
	Country     string `json:"country,omitempty"`
	Command     string `json:"command,omitempty"`
	Kind        string `json:"kind,omitempty"`
	Data        []byte `json:"data,omitempty"`
}

Config for a specific application.

type GetConfigRequest

type GetConfigRequest struct {
	Application string `json:"application,omitempty"`
	Version     string `json:"version,omitempty"`
	Environment string `json:"environment,omitempty"`
	Continent   string `json:"continent,omitempty"`
	Country     string `json:"country,omitempty"`
	Command     string `json:"command,omitempty"`
	Kind        string `json:"kind,omitempty"`
}

GetConfigRequest for a specific application.

type GetConfigResponse

type GetConfigResponse struct {
	Meta   map[string]string `json:"meta,omitempty"`
	Config *Config           `json:"config,omitempty"`
}

GetConfigResponse for a specific application.

type GetSecretsRequest

type GetSecretsRequest struct {
	Secrets map[string]string `json:"secrets,omitempty"`
}

GetSecretsRequest a map of name and secret.

type GetSecretsResponse

type GetSecretsResponse struct {
	Meta    map[string]string `json:"meta,omitempty"`
	Secrets map[string][]byte `json:"secrets,omitempty"`
}

GetSecretsResponse a map of meta and secrets.

Jump to

Keyboard shortcuts

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