meta

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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