Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionInstance ¶
type SessionInstance struct { entity.BaseEntity `xorm:"extends"` SessionId string `xorm:"varchar(255) notnull" json:",omitempty"` Status string `xorm:"varchar(32)" json:",omitempty"` StatusReason string `xorm:"varchar(255)" json:",omitempty"` StatusDate *time.Time `json:",omitempty"` Host string `xorm:"varchar(255) notnull" json:",omitempty"` Locale string `xorm:"varchar(255) notnull" json:",omitempty"` Url string `xorm:"varchar(255) notnull" json:",omitempty"` IsMobile bool `xorm:"notnull" json:",omitempty"` IsSSL bool `xorm:"notnull" json:",omitempty"` MaxInactiveInterval int32 LastAccessTime *time.Time `json:",omitempty"` }
* 定义了两个实体和他们对应的表名
* 会话历史记录
func (SessionInstance) IdName ¶
func (SessionInstance) IdName() string
func (SessionInstance) TableName ¶
func (SessionInstance) TableName() string
Click to show internal directories.
Click to hide internal directories.