Documentation ¶
Index ¶
- Variables
- type MaxMindConfig
- func (*MaxMindConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MaxMindConfig) GetAnonDbPath() string
- func (x *MaxMindConfig) GetCityDbPath() string
- func (x *MaxMindConfig) GetCommonProviderConfig() *v3.CommonGeoipProviderConfig
- func (x *MaxMindConfig) GetIspDbPath() string
- func (*MaxMindConfig) ProtoMessage()
- func (x *MaxMindConfig) ProtoReflect() protoreflect.Message
- func (x *MaxMindConfig) Reset()
- func (x *MaxMindConfig) String() string
- func (m *MaxMindConfig) Validate() error
- func (m *MaxMindConfig) ValidateAll() error
- type MaxMindConfigMultiError
- type MaxMindConfigValidationError
- func (e MaxMindConfigValidationError) Cause() error
- func (e MaxMindConfigValidationError) Error() string
- func (e MaxMindConfigValidationError) ErrorName() string
- func (e MaxMindConfigValidationError) Field() string
- func (e MaxMindConfigValidationError) Key() bool
- func (e MaxMindConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_geoip_providers_maxmind_v3_maxmind_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MaxMindConfig ¶
type MaxMindConfig struct { // Full file path to the Maxmind city database, e.g. /etc/GeoLite2-City.mmdb. // Database file is expected to have .mmdb extension. CityDbPath string `protobuf:"bytes,1,opt,name=city_db_path,json=cityDbPath,proto3" json:"city_db_path,omitempty"` // Full file path to the Maxmind ASN database, e.g. /etc/GeoLite2-ASN.mmdb. // Database file is expected to have .mmdb extension. IspDbPath string `protobuf:"bytes,2,opt,name=isp_db_path,json=ispDbPath,proto3" json:"isp_db_path,omitempty"` // Full file path to the Maxmind anonymous IP database, e.g. /etc/GeoIP2-Anonymous-IP.mmdb. // Database file is expected to have .mmdb extension. AnonDbPath string `protobuf:"bytes,3,opt,name=anon_db_path,json=anonDbPath,proto3" json:"anon_db_path,omitempty"` // Common provider configuration that specifies which geolocation headers will be populated with geolocation data. CommonProviderConfig *v3.CommonGeoipProviderConfig `protobuf:"bytes,4,opt,name=common_provider_config,json=commonProviderConfig,proto3" json:"common_provider_config,omitempty"` // contains filtered or unexported fields }
func (*MaxMindConfig) Descriptor
deprecated
func (*MaxMindConfig) Descriptor() ([]byte, []int)
Deprecated: Use MaxMindConfig.ProtoReflect.Descriptor instead.
func (*MaxMindConfig) GetAnonDbPath ¶
func (x *MaxMindConfig) GetAnonDbPath() string
func (*MaxMindConfig) GetCityDbPath ¶
func (x *MaxMindConfig) GetCityDbPath() string
func (*MaxMindConfig) GetCommonProviderConfig ¶
func (x *MaxMindConfig) GetCommonProviderConfig() *v3.CommonGeoipProviderConfig
func (*MaxMindConfig) GetIspDbPath ¶
func (x *MaxMindConfig) GetIspDbPath() string
func (*MaxMindConfig) ProtoMessage ¶
func (*MaxMindConfig) ProtoMessage()
func (*MaxMindConfig) ProtoReflect ¶
func (x *MaxMindConfig) ProtoReflect() protoreflect.Message
func (*MaxMindConfig) Reset ¶
func (x *MaxMindConfig) Reset()
func (*MaxMindConfig) String ¶
func (x *MaxMindConfig) String() string
func (*MaxMindConfig) Validate ¶
func (m *MaxMindConfig) Validate() error
Validate checks the field values on MaxMindConfig 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 (*MaxMindConfig) ValidateAll ¶
func (m *MaxMindConfig) ValidateAll() error
ValidateAll checks the field values on MaxMindConfig 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 MaxMindConfigMultiError, or nil if none found.
type MaxMindConfigMultiError ¶
type MaxMindConfigMultiError []error
MaxMindConfigMultiError is an error wrapping multiple validation errors returned by MaxMindConfig.ValidateAll() if the designated constraints aren't met.
func (MaxMindConfigMultiError) AllErrors ¶
func (m MaxMindConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MaxMindConfigMultiError) Error ¶
func (m MaxMindConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MaxMindConfigValidationError ¶
type MaxMindConfigValidationError struct {
// contains filtered or unexported fields
}
MaxMindConfigValidationError is the validation error returned by MaxMindConfig.Validate if the designated constraints aren't met.
func (MaxMindConfigValidationError) Cause ¶
func (e MaxMindConfigValidationError) Cause() error
Cause function returns cause value.
func (MaxMindConfigValidationError) Error ¶
func (e MaxMindConfigValidationError) Error() string
Error satisfies the builtin error interface
func (MaxMindConfigValidationError) ErrorName ¶
func (e MaxMindConfigValidationError) ErrorName() string
ErrorName returns error name.
func (MaxMindConfigValidationError) Field ¶
func (e MaxMindConfigValidationError) Field() string
Field function returns field value.
func (MaxMindConfigValidationError) Key ¶
func (e MaxMindConfigValidationError) Key() bool
Key function returns key value.
func (MaxMindConfigValidationError) Reason ¶
func (e MaxMindConfigValidationError) Reason() string
Reason function returns reason value.