Documentation
¶
Index ¶
- Constants
- type CGISession
- func (s *CGISession) Driver(sessionDriver ...driver)
- func (s *CGISession) Exists(sessionId string) bool
- func (s *CGISession) Freeze(params interface{}) (data []byte, err error)
- func (s *CGISession) GenerateSessionId() string
- func (s *CGISession) Id(idgen ...id)
- func (s *CGISession) Load(sessionId string) (ss *SessionStore)
- func (s *CGISession) New(sessionId ...string) (ss *SessionStore)
- func (s *CGISession) Serializer(sessionSerializer ...serializer)
- func (s *CGISession) Thaw(data []byte) (map[string]interface{}, error)
- type CGISessionConfig
- type SessionStore
- func (ss *SessionStore) ClearParam(name string)
- func (ss *SessionStore) Flush() (bool, error)
- func (ss *SessionStore) GetParam(name interface{}) interface{}
- func (ss *SessionStore) IPMatches() bool
- func (ss *SessionStore) IsExpired() bool
- func (ss *SessionStore) ParamFloat64(name string, value ...float64) float64
- func (ss *SessionStore) ParamInt(name string, value ...int) int
- func (ss *SessionStore) ParamInt64(name string, value ...int64) int64
- func (ss *SessionStore) ParamString(name string, value ...string) string
- func (ss *SessionStore) SessionId() string
- func (ss *SessionStore) SetParam(name, value interface{}) error
Constants ¶
View Source
const (
VERSION = "0.1.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGISession ¶
type CGISession struct {
// contains filtered or unexported fields
}
func Session ¶
func Session(config ...*CGISessionConfig) *CGISession
func (*CGISession) Driver ¶
func (s *CGISession) Driver(sessionDriver ...driver)
func (*CGISession) Exists ¶
func (s *CGISession) Exists(sessionId string) bool
func (*CGISession) Freeze ¶
func (s *CGISession) Freeze(params interface{}) (data []byte, err error)
func (*CGISession) GenerateSessionId ¶
func (s *CGISession) GenerateSessionId() string
func (*CGISession) Id ¶
func (s *CGISession) Id(idgen ...id)
func (*CGISession) Load ¶
func (s *CGISession) Load(sessionId string) (ss *SessionStore)
func (*CGISession) New ¶
func (s *CGISession) New(sessionId ...string) (ss *SessionStore)
Beego seems to insist on choosing it's own session ID, so we must accept a session ID here, although I don't fine this secure, since you could change someone's login to be pointed at your session information if you knew their session ID
func (*CGISession) Serializer ¶
func (s *CGISession) Serializer(sessionSerializer ...serializer)
type CGISessionConfig ¶
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func (*SessionStore) ClearParam ¶
func (ss *SessionStore) ClearParam(name string)
func (*SessionStore) Flush ¶
func (ss *SessionStore) Flush() (bool, error)
func (*SessionStore) GetParam ¶
func (ss *SessionStore) GetParam(name interface{}) interface{}
func (*SessionStore) IPMatches ¶
func (ss *SessionStore) IPMatches() bool
You must set REMOTE_ADDR environmental variable to make use of IP matching
func (*SessionStore) IsExpired ¶
func (ss *SessionStore) IsExpired() bool
func (*SessionStore) ParamFloat64 ¶
func (ss *SessionStore) ParamFloat64(name string, value ...float64) float64
func (*SessionStore) ParamInt64 ¶
func (ss *SessionStore) ParamInt64(name string, value ...int64) int64
func (*SessionStore) ParamString ¶
func (ss *SessionStore) ParamString(name string, value ...string) string
func (*SessionStore) SessionId ¶
func (ss *SessionStore) SessionId() string
func (*SessionStore) SetParam ¶
func (ss *SessionStore) SetParam(name, value interface{}) error
Click to show internal directories.
Click to hide internal directories.