meta

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 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/"
)

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 {
	Version       string
	MetricURI     string
	ConfigURI     string
	StatusURI     string
	ViewURI       string
	OpenApiURI    string
	AllowedSubnet []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