configuration

package
v0.0.0-...-bf79d3d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wire

func Wire()

Types

type AppConfig

type AppConfig struct {
}

func (*AppConfig) GetPrivateKey

func (s *AppConfig) GetPrivateKey() string

func (*AppConfig) GetPrometheusPassword

func (s *AppConfig) GetPrometheusPassword() string

func (*AppConfig) GetPrometheusUsername

func (s *AppConfig) GetPrometheusUsername() string

func (*AppConfig) GetPublicKey

func (s *AppConfig) GetPublicKey() string

func (*AppConfig) GetSwaggerPassword

func (s *AppConfig) GetSwaggerPassword() string

func (*AppConfig) GetSwaggerUsername

func (s *AppConfig) GetSwaggerUsername() string

type EndpointConfig

type EndpointConfig struct {
	PathPattern                     string
	EndpointSecurityConfigPerMethod map[string]EndpointSecurityConfig
	MetricsDisabled                 bool
}

type EndpointSecurityConfig

type EndpointSecurityConfig struct {
	NoAuthRequired bool // by default, auth is required (false)
}

type EndpointsConfigService

type EndpointsConfigService interface {
	IsAuthRequired(path, method string) bool
	AreMetricsEnabled(path string) bool
}

type EndpointsConfigServiceImpl

type EndpointsConfigServiceImpl struct{}

func NewEndpointsConfigService

func NewEndpointsConfigService() *EndpointsConfigServiceImpl

func (*EndpointsConfigServiceImpl) AreMetricsEnabled

func (s *EndpointsConfigServiceImpl) AreMetricsEnabled(path string) bool

func (*EndpointsConfigServiceImpl) IsAuthRequired

func (s *EndpointsConfigServiceImpl) IsAuthRequired(path, method string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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