Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NOOP represents no crypto NOOP = "NOOP" // AES256 represents AES256 encryption AES256 = "AES256" )
Variables ¶
This section is empty.
Functions ¶
func InitializeGlobalCodec ¶
InitializeGlobalCodec may be called once and only once to inject an object that implements the Codec interface into a "global" (package-scoped) variable. Additional invocations of this function will return an error.
Types ¶
type Codec ¶
Codec is an interface to be implemented by any type that can encrypt and decrypt values
type Config ¶
type Config struct {
EncryptionScheme string
}
Config represents configuration options for the global codec
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() Config
NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.
Click to show internal directories.
Click to hide internal directories.