entity

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: AGPL-3.0 Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL