package
2.12.0+incompatible
Repository: https://github.com/adguardteam/adguarddns.git
Documentation: pkg.go.dev
# Functions
New returns a new default in-memory profile database with a filesystem cache.
# Constants
ErrDeviceNotFound is an error returned by lookup methods when a device couldn't be found.
ErrProfileNotFound is an error returned by lookup methods when a profile couldn't be found.
# Structs
AuthenticationFailedError is returned by methods of [Storage] when the authentication to the storage fails.
BadRequestError is returned by methods of [Storage] when the request is malformed.
Config represents the profile database configuration.
Default is the default in-memory implementation of the [Interface] interface that can refresh itself from the provided storage.
DeviceQuotaExceededError is returned by [Storage.CreateAutoDevice] when the profile has exceeded the number of devices it can create.
Disabled is a profile database that panics on any call.
EmptyMetrics is the implementation of the [Metrics] interface that does nothing.
RateLimitedError is returned by methods of [Storage] when the requests are made too often.
StorageCreateAutoDeviceRequest contains the data for a call to the [Storage.CreateAutoDevice] method.
StorageCreateAutoDeviceResponse is the response from the [Storage.CreateAutoDevice] method.
StorageProfilesRequest contains the data for a call to the [Storage.Profiles] method.
StorageProfilesResponse is the response from the [Storage.Profiles] method.
UpdateMetrics is an alias for a structure that contains the information about a user profiles update operation.