package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
NewConfig creates new AcraTranslatorConfig.
NewMetricConnectionCallback return initialized MetricConnectionCallback with proper connectionType.
NewPrometheusServiceWrapper wraps all methods of service with metrics that track time of execution.
NewTranslatorService return new initialized TranslatorService.
RegisterMetrics register metrics in prometheus exporter related with translator.
# Constants
Valid values of connection type for metrics for Acra-Translator API.
GrpcRequestType grpc type of request for metric label.
Valid values of connection type for metrics for Acra-Translator API.
HTTPRequestType http type of request for metric label.
# Variables
Errors possible during decrypting AcraStructs.
Errors possible during decrypting AcraStructs.
Errors possible during decrypting AcraStructs.
Errors related with gRPC requests.
Errors related with gRPC requests.
Errors related with gRPC requests.
ErrInvalidMetricType used unsupported metric type.
Errors related with gRPC requests.
Errors related with gRPC requests.
Errors possible during decrypting AcraStructs.
RequestProcessingTimeHistogram collect metrics about time of processing requests to http/grpc api.
# Structs
AcraTranslatorConfig stores keys, poison record settings, connection attributes.
SearchableResponse store EncryptedData that may be AcraStruct or AcraBLock and searchable Hash.
TranslatorData connects KeyStorage and Poison records settings for HTTP and gRPC decryptors.
TranslatorService service that implements all Acra-Translator functions.
# Interfaces
ITranslatorService interface introduce all supported methods by Acra-Translator.