MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithCookieKeys

Function WithCookieKeys

pkg/web/web.go:104–108  ·  view source on GitHub ↗

WithCookieKeys sets the cookie hash key and block key.

(hashKey, blockKey []byte)

Source from the content-addressed store, hash-verified

102
103// WithCookieKeys sets the cookie hash key and block key.
104func WithCookieKeys(hashKey, blockKey []byte) Option {
105 return func(o *options) {
106 o.cookieHashKey, o.cookieBlockKey = hashKey, blockKey
107 }
108}
109
110// WithStatic sets the mount and search paths for static assets.
111func WithStatic(mount string, searchPaths ...string) Option {

Callers 2

initWebMethod · 0.92
TestCookiesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCookiesFunction · 0.68