Config Type — fiber Architecture
Architecture documentation for the Config type/interface in config.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 6b9d92b4_34f5_6778_0fef_67ca365fee49["Config"] f6963597_c994_df19_3697_223c26cfd16e["config.go"] 6b9d92b4_34f5_6778_0fef_67ca365fee49 -->|defined in| f6963597_c994_df19_3697_223c26cfd16e style 6b9d92b4_34f5_6778_0fef_67ca365fee49 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/encryptcookie/config.go lines 8–35
type Config struct {
// Next defines a function to skip this middleware when returned true.
//
// Optional. Default: nil
Next func(c fiber.Ctx) bool
// Custom function to encrypt cookies.
//
// Optional. Default: EncryptCookie (using AES-GCM)
Encryptor func(name, decryptedString, key string) (string, error)
// Custom function to decrypt cookies.
//
// Optional. Default: DecryptCookie (using AES-GCM)
Decryptor func(name, encryptedString, key string) (string, error)
// Base64 encoded unique key to encode & decode cookies.
//
// Required. Key length should be 16, 24, or 32 bytes when decoded
// if using the default EncryptCookie and DecryptCookie functions.
// You may use `encryptcookie.GenerateKey(length)` to generate a new key.
Key string
// Array of cookie keys that should not be encrypted.
//
// Optional. Default: []
Except []string
}
Defined In
Source
Frequently Asked Questions
What is the Config type?
Config is a type/interface in the fiber codebase, defined in middleware/encryptcookie/config.go.
Where is Config defined?
Config is defined in middleware/encryptcookie/config.go at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free