Documentation
¶
Index ¶
Constants ¶
View Source
const (
ServerCookieVersion = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
func DecodeEdns0Cookie ¶
func DecodeEdns0Cookie(ec *dns.EDNS0_COOKIE) (*Cookie, error)
func (*Cookie) Edns0 ¶
func (c *Cookie) Edns0() *dns.EDNS0_COOKIE
type CookieGenerator ¶
type CookieGenerator struct {
// contains filtered or unexported fields
}
func NewCookieGenerator ¶
func NewCookieGenerator(key []byte) (*CookieGenerator, error)
func (*CookieGenerator) GenerateCookie ¶
func (*CookieGenerator) ValidateCookie ¶
func (cg *CookieGenerator) ValidateCookie(cookie *Cookie, clientIP net.IP) error
type ServerCookie ¶
type ServerCookie []byte
Click to show internal directories.
Click to hide internal directories.