Documentation
¶
Index ¶
- func BuildExceptKeys(except []string) map[string]struct{}
- func DecryptCookie(data, key []byte) ([]byte, error)
- func DecryptRequestCookies(header *fasthttp.RequestHeader, opts *Options)
- func EncryptCookie(data, key []byte) ([]byte, error)
- func EncryptResponseCookies(header *fasthttp.ResponseHeader, opts *Options)
- func GenerateKey(length ...int) []byte
- type CookieCodec
- type Cryptor
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildExceptKeys ¶
func DecryptCookie ¶
func DecryptRequestCookies ¶
func DecryptRequestCookies(header *fasthttp.RequestHeader, opts *Options)
func EncryptCookie ¶
func EncryptResponseCookies ¶
func EncryptResponseCookies(header *fasthttp.ResponseHeader, opts *Options)
func GenerateKey ¶
Types ¶
type CookieCodec ¶
type CookieCodec struct {
// contains filtered or unexported fields
}
func NewCookieCodec ¶
func NewCookieCodec(key []byte) (*CookieCodec, error)
Click to show internal directories.
Click to hide internal directories.