Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESValue ¶
type AESValue struct {
// contains filtered or unexported fields
}
AESValue manages hashed sticky value.
func NewAESValue ¶
NewAESValue takes a fixed-size key and returns an CookieValue or an error. Key size must be exactly one of 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
type CookieValue ¶
type CookieValue interface { // Get converts raw value to an expected sticky format. Get(*url.URL) string // FindURL gets url from array that match the value. FindURL(string, []*url.URL) (*url.URL, error) }
CookieValue interface to manage the sticky cookie value format. It will be used by the load balancer to generate the sticky cookie value and to retrieve the matching url.
type FallbackValue ¶
type FallbackValue struct {
// contains filtered or unexported fields
}
FallbackValue manages hashed sticky value.
func NewFallbackValue ¶
func NewFallbackValue(from CookieValue, to CookieValue) (*FallbackValue, error)
NewFallbackValue creates a new FallbackValue.
type HashValue ¶
type HashValue struct { // Salt secret to anonymize the hashed cookie Salt string }
HashValue manages hashed sticky value.
Click to show internal directories.
Click to hide internal directories.