Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProviderAES is the AES-GCM encryption provider. ProviderAES = "aes" // ProviderSalsa20 is the Salsa20 encryption provider. ProviderSalsa20 = "salsa20" )
Variables ¶
View Source
var ( // Providers provides encryption construction for dependency injection. Providers = wire.NewSet( ProvideEncryptorDecryptor, ) )
Functions ¶
func ProvideEncryptorDecryptor ¶
func ProvideEncryptorDecryptor( cfg *Config, tracerProvider tracing.TracerProvider, logger logging.Logger, key []byte, ) (encryption.EncryptorDecryptor, error)
ProvideEncryptorDecryptor provides an EncryptorDecryptor based on the configured provider.
func RegisterEncryptorDecryptor ¶
RegisterEncryptorDecryptor registers an encryption.EncryptorDecryptor with the injector.
Types ¶
Click to show internal directories.
Click to hide internal directories.