Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { }
func (*AppConfig) GetPrivateKey ¶
func (*AppConfig) GetPrometheusPassword ¶
func (*AppConfig) GetPrometheusUsername ¶
func (*AppConfig) GetPublicKey ¶
func (*AppConfig) GetSwaggerPassword ¶
func (*AppConfig) GetSwaggerUsername ¶
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 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
Click to show internal directories.
Click to hide internal directories.