Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiError ¶
type MultiError []error
MultiError stores multiple errors.
Borrowed from the App Engine SDK.
func (MultiError) Error ¶
func (m MultiError) Error() string
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func GetRegistry ¶
type Session ¶
type Session struct {
// ID should be generated by store
ID string
// User data of session
Values map[interface{}]interface{}
Options *Options
IsNew bool
// contains filtered or unexported fields
}
func NewSession ¶
type Store ¶
type Store interface {
// To return a cached session
Get(c *gin.Context, name string) (*Session, error)
// To create a new session
New(c *gin.Context, name string) (*Session, error)
// To save a changed session
Save(c *gin.Context, s *Session) error
// To delete a session
Delete(c *gin.Context, s *Session) error
}
Click to show internal directories.
Click to hide internal directories.