Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HasEngine . HasEngine bool DbCfg struct { Type, Host, Name, User, Passwd, Path, SSLMode string } EnableSQLite3 bool )
Functions ¶
Types ¶
type Engine ¶
type Engine interface { Delete(interface{}) (int64, error) Exec(string, ...interface{}) (sql.Result, error) Exist(...interface{}) (bool, error) Find(interface{}, ...interface{}) error Get(interface{}) (bool, error) Id(interface{}) *xorm.Session In(string, ...interface{}) *xorm.Session Insert(...interface{}) (int64, error) InsertOne(interface{}) (int64, error) Iterate(interface{}, xorm.IterFunc) error Query(string, ...interface{}) (sql.Result, error) Sql(string, ...interface{}) *xorm.Session Table(interface{}) *xorm.Session Where(interface{}, ...interface{}) *xorm.Session }
Engine represents a XORM engine or session.
type IP ¶
type IP struct { ID int64 `xorm:"pk autoincr" json:"-"` Data string `xorm:"NOT NULL unique" json:"ip"` Type1 string `xorm:"NOT NULL" json:"type1"` Type2 string `xorm:"NULL" json:"type2,omitempty"` Speed int64 `xorm:"NOT NULL" json:"speed,omitempty"` //连接速度 Source string `xorm:"NOT NULL" json:"source,omitempty"` //代理来源 CreateTime time.Time `xorm:"NOT NULL" json:"-"` UpdateTime time.Time `xorm:"NOT NULL" json:"-"` }
IP struct
Click to show internal directories.
Click to hide internal directories.