Documentation ¶
Index ¶
- func AdditionalData(ctx context.Context) ([]byte, bool)
- func FromKey(keyValue string) (value.Transformer, error)
- func Must(t value.Transformer, err error) value.Transformer
- func Nonce(ctx context.Context) ([]byte, bool)
- func Register(prefix string, factory TransformerFactoryFunc)
- func WithAdditionalData(ctx context.Context, value []byte) context.Context
- func WithNonce(ctx context.Context, value []byte) context.Context
- type TransformerFactoryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdditionalData ¶ added in v0.2.6
AdditionalData gets the aad value from the context.
func FromKey ¶
func FromKey(keyValue string) (value.Transformer, error)
FromKey returns the value transformer that match the value format.
func Must ¶ added in v0.2.1
func Must(t value.Transformer, err error) value.Transformer
Must is used to panic when a transformer initialization failed.
func Register ¶ added in v0.2.1
func Register(prefix string, factory TransformerFactoryFunc)
Register a transformer with the given prefix.
func WithAdditionalData ¶ added in v0.2.6
Types ¶
type TransformerFactoryFunc ¶ added in v0.2.1
type TransformerFactoryFunc func(string) (value.Transformer, error)
TransformerFactoryFunc is used for transformer building for encryption.
Click to show internal directories.
Click to hide internal directories.