Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetMetricsProviders() []*MetricsProvider
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type MetricsProvider
- func (*MetricsProvider) Descriptor() ([]byte, []int)deprecated
- func (x *MetricsProvider) GetApiEndpoint() string
- func (*MetricsProvider) ProtoMessage()
- func (x *MetricsProvider) ProtoReflect() protoreflect.Message
- func (x *MetricsProvider) Reset()
- func (x *MetricsProvider) String() string
- func (m *MetricsProvider) Validate() error
- func (m *MetricsProvider) ValidateAll() error
- type MetricsProviderMultiError
- type MetricsProviderValidationError
- func (e MetricsProviderValidationError) Cause() error
- func (e MetricsProviderValidationError) Error() string
- func (e MetricsProviderValidationError) ErrorName() string
- func (e MetricsProviderValidationError) Field() string
- func (e MetricsProviderValidationError) Key() bool
- func (e MetricsProviderValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_config_service_metrics_v1_metrics_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MetricsProviders []*MetricsProvider `protobuf:"bytes,1,rep,name=metrics_providers,json=metricsProviders,proto3" json:"metrics_providers,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetMetricsProviders ¶
func (x *Config) GetMetricsProviders() []*MetricsProvider
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type MetricsProvider ¶
type MetricsProvider struct { ApiEndpoint string `protobuf:"bytes,1,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"` // contains filtered or unexported fields }
func (*MetricsProvider) Descriptor
deprecated
func (*MetricsProvider) Descriptor() ([]byte, []int)
Deprecated: Use MetricsProvider.ProtoReflect.Descriptor instead.
func (*MetricsProvider) GetApiEndpoint ¶
func (x *MetricsProvider) GetApiEndpoint() string
func (*MetricsProvider) ProtoMessage ¶
func (*MetricsProvider) ProtoMessage()
func (*MetricsProvider) ProtoReflect ¶
func (x *MetricsProvider) ProtoReflect() protoreflect.Message
func (*MetricsProvider) Reset ¶
func (x *MetricsProvider) Reset()
func (*MetricsProvider) String ¶
func (x *MetricsProvider) String() string
func (*MetricsProvider) Validate ¶
func (m *MetricsProvider) Validate() error
Validate checks the field values on MetricsProvider with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MetricsProvider) ValidateAll ¶
func (m *MetricsProvider) ValidateAll() error
ValidateAll checks the field values on MetricsProvider with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetricsProviderMultiError, or nil if none found.
type MetricsProviderMultiError ¶
type MetricsProviderMultiError []error
MetricsProviderMultiError is an error wrapping multiple validation errors returned by MetricsProvider.ValidateAll() if the designated constraints aren't met.
func (MetricsProviderMultiError) AllErrors ¶
func (m MetricsProviderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetricsProviderMultiError) Error ¶
func (m MetricsProviderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetricsProviderValidationError ¶
type MetricsProviderValidationError struct {
// contains filtered or unexported fields
}
MetricsProviderValidationError is the validation error returned by MetricsProvider.Validate if the designated constraints aren't met.
func (MetricsProviderValidationError) Cause ¶
func (e MetricsProviderValidationError) Cause() error
Cause function returns cause value.
func (MetricsProviderValidationError) Error ¶
func (e MetricsProviderValidationError) Error() string
Error satisfies the builtin error interface
func (MetricsProviderValidationError) ErrorName ¶
func (e MetricsProviderValidationError) ErrorName() string
ErrorName returns error name.
func (MetricsProviderValidationError) Field ¶
func (e MetricsProviderValidationError) Field() string
Field function returns field value.
func (MetricsProviderValidationError) Key ¶
func (e MetricsProviderValidationError) Key() bool
Key function returns key value.
func (MetricsProviderValidationError) Reason ¶
func (e MetricsProviderValidationError) Reason() string
Reason function returns reason value.