WithCookieKeys sets the cookie hash key and block key.
(hashKey, blockKey []byte)
| 102 | |
| 103 | // WithCookieKeys sets the cookie hash key and block key. |
| 104 | func 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. |
| 111 | func WithStatic(mount string, searchPaths ...string) Option { |
no outgoing calls