meta

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	//MetricURI represents default metric URIPrefix
	MetricURI = "/v1/api/meta/metric"
	//StatusURI represents status URIPrefix
	StatusURI = "/v1/api/meta/status"
	//ConfigURI represents default config URIPrefix
	ConfigURI = "/v1/api/meta/config"
	//ViewURI represents default config view URIPrefix
	ViewURI = "/v1/api/meta/view"
	//OpenApiURI represents default config openapi URIPrefix
	OpenApiURI = "/v1/api/meta/openapi"
	//CacheWarmupURI URIPrefix default value
	CacheWarmupURI = "/v1/api/cache/warmup"
	//StructURI URIPrefix that generates a Golang struct representation
	StructURI = "/v1/api/meta/struct"

	//StateURI state uri
	StateURI = "/v1/api/meta/state"
)

Variables

This section is empty.

Functions

func IsAuthorized

func IsAuthorized(request *http.Request, allowedSubset []string) bool

IsAuthorized checks if request is authorized

Types

type Config

type Config struct {
	AllowedSubnet []string
	Version       string
	MetricURI     string
	ConfigURI     string
	StatusURI     string
	ViewURI       string
	OpenApiURI    string
	CacheWarmURI  string
	StructURI     string
	StateURI      string
}

Config represents meta config

func (*Config) Init

func (m *Config) Init()

Init initialises config

Jump to

Keyboard shortcuts

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