package
0.0.0-20240805073345-39c03fc987d2
Repository: https://github.com/intergral/deep.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
DiffConfig utility function that returns the diff between two config map objects.
EqualHexStringSnapshotIDs compares two snapshot ID strings and compares the resulting bytes after padding.
ExtractTenantID will extract the tenant ID from the context.
ExtractTraceID extracts the trace id, if any from the context.
GetFirstAddressOf returns the first IPv4 address of the supplied interface names, omitting any 169.254.x.x automatic private IPs if possible.
No description provided by the author
No description provided by the author
InjectTenantID will inject the tenant ID into the context.
InjectTenantIDIntoHTTPRequest will inject the tenant ID into the request.
IsConnCanceled returns true, if error is from a closed gRPC connection.
IsRequestBodyTooLarge returns true if the error is "http: request body too large".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDistinctStringCollector with the given maximum data size.
NewDistinctStringCollector with the given maximum data size.
NewDNSWatcher creates a new DNS watcher and returns a service that is wrapping it.
No description provided by the author
ParseProtoReader parses a compressed proto from an io.Reader.
No description provided by the author
No description provided by the author
No description provided by the author
RenderHTTPResponse either responds with json or a rendered html page using the passed in template by checking the Accepts header.
SerializeProtoResponse serializes a protobuf response into an HTTP response.
SnapshotIDToHexString converts a snapshot ID to its string representation and removes any leading zeros.
StreamWriteYAMLResponse stream writes data as http response.
No description provided by the author
No description provided by the author
TokenFor generates a token used for finding ingesters from ring.
TokenForSnapshotID generates a hashed value for a snapshot id.
Sends message as text/html response with 200 status code.
WriteJSONResponse writes some JSON as a HTTP response.
Sends message as text/plain response with 200 status code.
WriteYAMLResponse writes some YAML as a HTTP response.
YAMLMarshalUnmarshal utility function that converts a YAML interface in a map doing marshal and unmarshal of the parameter.
# Constants
FakeTenantID is the tenant ID to be used when operating with authorization disabled.
Values for CompressionType.
No description provided by the author
Values for CompressionType.
TenantIDHeaderName denotes the TenantID the request has been authenticated as.
# Variables
ErrSearchKeyValueNotFound is used to indicate the requested key/value pair was not found.
ErrSnapshotNotFound can be used when we don't find a snapshot.
No description provided by the author
# Structs
ActiveUsers keeps track of latest user's activity timestamp, and allows purging users that are no longer active.
ActiveUsersCleanupService tracks active users, and periodically purges inactive ones while running.
BasicAuth configures basic authentication for HTTP clients.
Client is client to the Deep API.
No description provided by the author
No description provided by the author
# Interfaces
Notifications about address resolution.
# Type aliases
CompressionType for encoding and decoding requests and responses.
The MultiError type implements the error interface, and contains the Errors used to construct it.