package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# README
Install grpc dependencies
# from https://developers.google.com/protocol-buffers/docs/gotutorial
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
To recompile proto file run from root of acra repository:
make build_protobuf
# Functions
AddgRPCServerSubscriber register callback for gRPC server.
NewServer return new grpc.Server with AcraTranslator methods as gRPC service.
NewTLSDecryptServiceWrapper return new service wrapper which use clientID from TLS certificates.
NewTranslatorService return new TranslatorService instance.
OngRPCServerInit call all registered callbacks on gRPC server initialization.
# Variables
Errors possible during decrypting AcraStructs.
ErrEmptyClientID error used if ClientID required in request but not provided.
Errors related with gRPC requests.
Errors related with gRPC requests.
ErrNoTranslatorData error used if passed nil TranslatorData.
Reader_ServiceDesc is the grpc.ServiceDesc for Reader service.
ReaderSym_ServiceDesc is the grpc.ServiceDesc for ReaderSym service.
SearchableEncryption_ServiceDesc is the grpc.ServiceDesc for SearchableEncryption service.
Tokenizator_ServiceDesc is the grpc.ServiceDesc for Tokenizator service.
Writer_ServiceDesc is the grpc.ServiceDesc for Writer service.
WriterSym_ServiceDesc is the grpc.ServiceDesc for WriterSym service.
# Structs
TLSDecryptServiceWrapper wraps DecryptService and replace clientID in requests with clientID from connection info.
TranslatorService implements gRPC service.
UnimplementedReaderServer must be embedded to have forward compatible implementations.
UnimplementedReaderSymServer must be embedded to have forward compatible implementations.
UnimplementedSearchableEncryptionServer must be embedded to have forward compatible implementations.
UnimplementedTokenizatorServer must be embedded to have forward compatible implementations.
UnimplementedWriterServer must be embedded to have forward compatible implementations.
UnimplementedWriterSymServer must be embedded to have forward compatible implementations.
# Interfaces
DecryptService aggregated interface of each grpc service.
GRPCServerSubscriber declares callbacks for gRPC server subscribers.
ReaderClient is the client API for Reader service.
ReaderServer is the server API for Reader service.
ReaderSymClient is the client API for ReaderSym service.
ReaderSymServer is the server API for ReaderSym service.
SearchableEncryptionClient is the client API for SearchableEncryption service.
SearchableEncryptionServer is the server API for SearchableEncryption service.
TokenizatorClient is the client API for Tokenizator service.
TokenizatorServer is the server API for Tokenizator service.
UnsafeReaderServer may be embedded to opt out of forward compatibility for this service.
UnsafeReaderSymServer may be embedded to opt out of forward compatibility for this service.
UnsafeSearchableEncryptionServer may be embedded to opt out of forward compatibility for this service.
UnsafeTokenizatorServer may be embedded to opt out of forward compatibility for this service.
UnsafeWriterServer may be embedded to opt out of forward compatibility for this service.
UnsafeWriterSymServer may be embedded to opt out of forward compatibility for this service.
WriterClient is the client API for Writer service.
WriterServer is the server API for Writer service.
WriterSymClient is the client API for WriterSym service.
WriterSymServer is the server API for WriterSym service.