Abstract sessions.Session with b.session

This commit is contained in:
2024-09-28 13:44:25 +02:00
parent afa1b65563
commit e4bef7006c
2 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,10 @@ import (
"github.com/gorilla/sessions"
)
type CookieStore struct{ sessions.CookieStore }
type (
CookieStore struct{ sessions.CookieStore }
Session struct{ sessions.Session }
)
func NewKey() ([]byte, error) {
key := make([]byte, 32)