maxmindv3

package
v0.0.0-...-e2f41ce Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (MaxMindConfigValidationError) Error

Error satisfies the builtin error interface

func (MaxMindConfigValidationError) ErrorName

func (e MaxMindConfigValidationError) ErrorName() string

ErrorName returns error name.

func (MaxMindConfigValidationError) Field

Field function returns field value.

func (MaxMindConfigValidationError) Key

Key function returns key value.

func (MaxMindConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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