Documentation ¶
Index ¶
- Constants
- func Decode(name, value string, dst interface{}) error
- func Encode(name string, value interface{}) (string, error)
- func Generate() (hashKey []byte, blockKey []byte)
- func IniClient(filename string) (e error)
- func Init(filename string, maxAge int64)
- func IsInit() bool
- func Save(filename string, hashKey []byte, blockKey []byte) (e error)
- type Session
Constants ¶
View Source
const (
// CookieName cookie 名稱
CookieName = "king011_auto_deploy_grpc_session"
)
View Source
const (
// FileName 配置檔案名稱
FileName = "securecookie.json"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
Session 客戶連接 信息
func FromContext ¶
FromContext 由Context值 恢復session
func FromCookie ¶
FromCookie 由cookie值 恢復session
Click to show internal directories.
Click to hide internal directories.