feat: add config

This commit is contained in:
weloe
2023-05-02 15:04:50 +08:00
parent 9be7ea8ceb
commit 35c206716d
4 changed files with 145 additions and 0 deletions

19
config/cookie.go Normal file
View File

@@ -0,0 +1,19 @@
package config
type cookieConfig struct {
Domain string
Path string
Secure bool
HttpOnly bool
SameSite string
}
func DefaultCookieConfig() *cookieConfig {
return &cookieConfig{
Domain: "",
Path: "",
Secure: false,
HttpOnly: false,
SameSite: "",
}
}