Documentation ¶
Index ¶
- Variables
- type NgingAccessLog
- func (a *NgingAccessLog) AsKV(keyField string, valueField string, inputRows ...[]*NgingAccessLog) param.Store
- func (a *NgingAccessLog) AsMap(onlyFields ...string) param.Store
- func (a *NgingAccessLog) AsRow(onlyFields ...string) param.Store
- func (a *NgingAccessLog) BatchValidate(kvset map[string]interface{}) error
- func (a *NgingAccessLog) CPAFrom(source factory.Model) factory.Model
- func (a *NgingAccessLog) Context() echo.Context
- func (a *NgingAccessLog) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)
- func (a *NgingAccessLog) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingAccessLog) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingAccessLog) EventOFF(off ...bool) factory.Model
- func (a *NgingAccessLog) EventON(on ...bool) factory.Model
- func (a *NgingAccessLog) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)
- func (a *NgingAccessLog) FromRow(row map[string]interface{})
- func (a *NgingAccessLog) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingAccessLog) GroupBy(keyField string, inputRows ...[]*NgingAccessLog) map[string][]*NgingAccessLog
- func (a *NgingAccessLog) InitObjects() *[]*NgingAccessLog
- func (a *NgingAccessLog) Insert() (pk interface{}, err error)
- func (a *NgingAccessLog) KeyBy(keyField string, inputRows ...[]*NgingAccessLog) map[string]*NgingAccessLog
- func (a *NgingAccessLog) List(recv interface{}, mw func(db.Result) db.Result, page, size int, ...) (func() int64, error)
- func (a *NgingAccessLog) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, ...) (func() int64, error)
- func (a *NgingAccessLog) ListPage(cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingAccessLog) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingAccessLog) Name_() string
- func (a *NgingAccessLog) Namer() func(factory.Model) string
- func (a *NgingAccessLog) New(structName string, connID ...int) factory.Model
- func (a *NgingAccessLog) NewObjects() factory.Ranger
- func (a *NgingAccessLog) NewParam() *factory.Param
- func (a *NgingAccessLog) Objects() []*NgingAccessLog
- func (a *NgingAccessLog) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param
- func (a *NgingAccessLog) Reset() *NgingAccessLog
- func (a *NgingAccessLog) Set(key interface{}, value ...interface{})
- func (a *NgingAccessLog) SetConnID(connID int) factory.Model
- func (a *NgingAccessLog) SetContext(ctx echo.Context) factory.Model
- func (a *NgingAccessLog) SetNamer(namer func(factory.Model) string) factory.Model
- func (a *NgingAccessLog) SetParam(param *factory.Param) factory.Model
- func (a *NgingAccessLog) Short_() string
- func (a *NgingAccessLog) Struct_() string
- func (a *NgingAccessLog) Trans() *factory.Transaction
- func (a *NgingAccessLog) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingAccessLog) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)
- func (a *NgingAccessLog) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, ...) (err error)
- func (a *NgingAccessLog) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, ...) (err error)
- func (a *NgingAccessLog) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
- func (a *NgingAccessLog) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingAccessLog) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)
- func (a *NgingAccessLog) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)
- func (a *NgingAccessLog) Use(trans *factory.Transaction) factory.Model
- func (a *NgingAccessLog) Validate(field string, value interface{}) error
- func (a *NgingAccessLog) XObjects() Slice_NgingAccessLog
- type NgingVhost
- func (a *NgingVhost) AsKV(keyField string, valueField string, inputRows ...[]*NgingVhost) param.Store
- func (a *NgingVhost) AsMap(onlyFields ...string) param.Store
- func (a *NgingVhost) AsRow(onlyFields ...string) param.Store
- func (a *NgingVhost) BatchValidate(kvset map[string]interface{}) error
- func (a *NgingVhost) CPAFrom(source factory.Model) factory.Model
- func (a *NgingVhost) Context() echo.Context
- func (a *NgingVhost) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)
- func (a *NgingVhost) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhost) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingVhost) EventOFF(off ...bool) factory.Model
- func (a *NgingVhost) EventON(on ...bool) factory.Model
- func (a *NgingVhost) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)
- func (a *NgingVhost) FromRow(row map[string]interface{})
- func (a *NgingVhost) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhost) GroupBy(keyField string, inputRows ...[]*NgingVhost) map[string][]*NgingVhost
- func (a *NgingVhost) InitObjects() *[]*NgingVhost
- func (a *NgingVhost) Insert() (pk interface{}, err error)
- func (a *NgingVhost) KeyBy(keyField string, inputRows ...[]*NgingVhost) map[string]*NgingVhost
- func (a *NgingVhost) List(recv interface{}, mw func(db.Result) db.Result, page, size int, ...) (func() int64, error)
- func (a *NgingVhost) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, ...) (func() int64, error)
- func (a *NgingVhost) ListPage(cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingVhost) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingVhost) Name_() string
- func (a *NgingVhost) Namer() func(factory.Model) string
- func (a *NgingVhost) New(structName string, connID ...int) factory.Model
- func (a *NgingVhost) NewObjects() factory.Ranger
- func (a *NgingVhost) NewParam() *factory.Param
- func (a *NgingVhost) Objects() []*NgingVhost
- func (a *NgingVhost) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param
- func (a *NgingVhost) Reset() *NgingVhost
- func (a *NgingVhost) Set(key interface{}, value ...interface{})
- func (a *NgingVhost) SetConnID(connID int) factory.Model
- func (a *NgingVhost) SetContext(ctx echo.Context) factory.Model
- func (a *NgingVhost) SetNamer(namer func(factory.Model) string) factory.Model
- func (a *NgingVhost) SetParam(param *factory.Param) factory.Model
- func (a *NgingVhost) Short_() string
- func (a *NgingVhost) Struct_() string
- func (a *NgingVhost) Trans() *factory.Transaction
- func (a *NgingVhost) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhost) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)
- func (a *NgingVhost) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, ...) (err error)
- func (a *NgingVhost) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, ...) (err error)
- func (a *NgingVhost) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
- func (a *NgingVhost) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingVhost) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)
- func (a *NgingVhost) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)
- func (a *NgingVhost) Use(trans *factory.Transaction) factory.Model
- func (a *NgingVhost) Validate(field string, value interface{}) error
- func (a *NgingVhost) XObjects() Slice_NgingVhost
- type NgingVhostGroup
- func (a *NgingVhostGroup) AsKV(keyField string, valueField string, inputRows ...[]*NgingVhostGroup) param.Store
- func (a *NgingVhostGroup) AsMap(onlyFields ...string) param.Store
- func (a *NgingVhostGroup) AsRow(onlyFields ...string) param.Store
- func (a *NgingVhostGroup) BatchValidate(kvset map[string]interface{}) error
- func (a *NgingVhostGroup) CPAFrom(source factory.Model) factory.Model
- func (a *NgingVhostGroup) Context() echo.Context
- func (a *NgingVhostGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)
- func (a *NgingVhostGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhostGroup) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingVhostGroup) EventOFF(off ...bool) factory.Model
- func (a *NgingVhostGroup) EventON(on ...bool) factory.Model
- func (a *NgingVhostGroup) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)
- func (a *NgingVhostGroup) FromRow(row map[string]interface{})
- func (a *NgingVhostGroup) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhostGroup) GroupBy(keyField string, inputRows ...[]*NgingVhostGroup) map[string][]*NgingVhostGroup
- func (a *NgingVhostGroup) InitObjects() *[]*NgingVhostGroup
- func (a *NgingVhostGroup) Insert() (pk interface{}, err error)
- func (a *NgingVhostGroup) KeyBy(keyField string, inputRows ...[]*NgingVhostGroup) map[string]*NgingVhostGroup
- func (a *NgingVhostGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, ...) (func() int64, error)
- func (a *NgingVhostGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, ...) (func() int64, error)
- func (a *NgingVhostGroup) ListPage(cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingVhostGroup) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
- func (a *NgingVhostGroup) Name_() string
- func (a *NgingVhostGroup) Namer() func(factory.Model) string
- func (a *NgingVhostGroup) New(structName string, connID ...int) factory.Model
- func (a *NgingVhostGroup) NewObjects() factory.Ranger
- func (a *NgingVhostGroup) NewParam() *factory.Param
- func (a *NgingVhostGroup) Objects() []*NgingVhostGroup
- func (a *NgingVhostGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param
- func (a *NgingVhostGroup) Reset() *NgingVhostGroup
- func (a *NgingVhostGroup) Set(key interface{}, value ...interface{})
- func (a *NgingVhostGroup) SetConnID(connID int) factory.Model
- func (a *NgingVhostGroup) SetContext(ctx echo.Context) factory.Model
- func (a *NgingVhostGroup) SetNamer(namer func(factory.Model) string) factory.Model
- func (a *NgingVhostGroup) SetParam(param *factory.Param) factory.Model
- func (a *NgingVhostGroup) Short_() string
- func (a *NgingVhostGroup) Struct_() string
- func (a *NgingVhostGroup) Trans() *factory.Transaction
- func (a *NgingVhostGroup) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (a *NgingVhostGroup) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)
- func (a *NgingVhostGroup) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, ...) (err error)
- func (a *NgingVhostGroup) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, ...) (err error)
- func (a *NgingVhostGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
- func (a *NgingVhostGroup) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)
- func (a *NgingVhostGroup) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)
- func (a *NgingVhostGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)
- func (a *NgingVhostGroup) Use(trans *factory.Transaction) factory.Model
- func (a *NgingVhostGroup) Validate(field string, value interface{}) error
- func (a *NgingVhostGroup) XObjects() Slice_NgingVhostGroup
- type Slice_NgingAccessLog
- func (s Slice_NgingAccessLog) AsKV(keyField string, valueField string) param.Store
- func (s Slice_NgingAccessLog) FromList(data interface{}) Slice_NgingAccessLog
- func (s Slice_NgingAccessLog) GroupBy(keyField string) map[string][]*NgingAccessLog
- func (s Slice_NgingAccessLog) KeyBy(keyField string) map[string]*NgingAccessLog
- func (s Slice_NgingAccessLog) Range(fn func(m factory.Model) error) error
- func (s Slice_NgingAccessLog) RangeRaw(fn func(m *NgingAccessLog) error) error
- func (s Slice_NgingAccessLog) Transform(transfers map[string]param.Transfer) []param.Store
- type Slice_NgingVhost
- func (s Slice_NgingVhost) AsKV(keyField string, valueField string) param.Store
- func (s Slice_NgingVhost) FromList(data interface{}) Slice_NgingVhost
- func (s Slice_NgingVhost) GroupBy(keyField string) map[string][]*NgingVhost
- func (s Slice_NgingVhost) KeyBy(keyField string) map[string]*NgingVhost
- func (s Slice_NgingVhost) Range(fn func(m factory.Model) error) error
- func (s Slice_NgingVhost) RangeRaw(fn func(m *NgingVhost) error) error
- func (s Slice_NgingVhost) Transform(transfers map[string]param.Transfer) []param.Store
- type Slice_NgingVhostGroup
- func (s Slice_NgingVhostGroup) AsKV(keyField string, valueField string) param.Store
- func (s Slice_NgingVhostGroup) FromList(data interface{}) Slice_NgingVhostGroup
- func (s Slice_NgingVhostGroup) GroupBy(keyField string) map[string][]*NgingVhostGroup
- func (s Slice_NgingVhostGroup) KeyBy(keyField string) map[string]*NgingVhostGroup
- func (s Slice_NgingVhostGroup) Range(fn func(m factory.Model) error) error
- func (s Slice_NgingVhostGroup) RangeRaw(fn func(m *NgingVhostGroup) error) error
- func (s Slice_NgingVhostGroup) Transform(transfers map[string]param.Transfer) []param.Store
Constants ¶
This section is empty.
Variables ¶
View Source
var DBI = factory.DefaultDBI
View Source
var WithPrefix = func(tableName string) string {
return "" + tableName
}
Functions ¶
This section is empty.
Types ¶
type NgingAccessLog ¶
type NgingAccessLog struct { Id uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"` VhostId uint `db:"vhost_id" bson:"vhost_id" comment:"虚拟主机ID" json:"vhost_id" xml:"vhost_id"` RemoteAddr string `db:"remote_addr" bson:"remote_addr" comment:"IP地址" json:"remote_addr" xml:"remote_addr"` XRealIp string `db:"x_real_ip" bson:"x_real_ip" comment:"IP" json:"x_real_ip" xml:"x_real_ip"` XForwardFor string `db:"x_forward_for" bson:"x_forward_for" comment:"IP" json:"x_forward_for" xml:"x_forward_for"` LocalAddr string `db:"local_addr" bson:"local_addr" comment:"本机地址" json:"local_addr" xml:"local_addr"` Elapsed float64 `db:"elapsed" bson:"elapsed" comment:"耗时(秒)" json:"elapsed" xml:"elapsed"` Host string `db:"host" bson:"host" comment:"Header中的Host, 一般会是域名" json:"host" xml:"host"` User string `db:"user" bson:"user" comment:"用户" json:"user" xml:"user"` TimeLocal string `db:"time_local" bson:"time_local" comment:"本地时间格式" json:"time_local" xml:"time_local"` Minute string `db:"minute" bson:"minute" comment:"H:i" json:"minute" xml:"minute"` Method string `db:"method" bson:"method" comment:"GET POST HEAD OPTIONS PUT DELETE..." json:"method" xml:"method"` Uri string `db:"uri" bson:"uri" comment:"网址" json:"uri" xml:"uri"` Version string `db:"version" bson:"version" comment:"HTTP/1.0, HTTP/1.1 ..." json:"version" xml:"version"` StatusCode uint `db:"status_code" bson:"status_code" comment:"状态码" json:"status_code" xml:"status_code"` BodyBytes uint64 `db:"body_bytes" bson:"body_bytes" comment:"响应body字节数" json:"body_bytes" xml:"body_bytes"` Referer string `db:"referer" bson:"referer" comment:"来源网址" json:"referer" xml:"referer"` UserAgent string `db:"user_agent" bson:"user_agent" comment:"用户代理" json:"user_agent" xml:"user_agent"` HitStatus uint `db:"hit_status" bson:"hit_status" comment:"缓存服务器命中状态" json:"hit_status" xml:"hit_status"` Scheme string `db:"scheme" bson:"scheme" comment:"https/http" json:"scheme" xml:"scheme"` BrowerName string `db:"brower_name" bson:"brower_name" comment:"浏览器名" json:"brower_name" xml:"brower_name"` BrowerType string `db:"brower_type" bson:"brower_type" comment:"浏览器类型(spider/mobile/pc)" json:"brower_type" xml:"brower_type"` Created uint `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"` // contains filtered or unexported fields }
NgingAccessLog
func NewNgingAccessLog ¶
func NewNgingAccessLog(ctx echo.Context) *NgingAccessLog
func (*NgingAccessLog) AsKV ¶
func (a *NgingAccessLog) AsKV(keyField string, valueField string, inputRows ...[]*NgingAccessLog) param.Store
func (*NgingAccessLog) BatchValidate ¶
func (a *NgingAccessLog) BatchValidate(kvset map[string]interface{}) error
func (*NgingAccessLog) CPAFrom ¶
func (a *NgingAccessLog) CPAFrom(source factory.Model) factory.Model
func (*NgingAccessLog) Context ¶
func (a *NgingAccessLog) Context() echo.Context
func (*NgingAccessLog) FromRow ¶
func (a *NgingAccessLog) FromRow(row map[string]interface{})
func (*NgingAccessLog) GroupBy ¶
func (a *NgingAccessLog) GroupBy(keyField string, inputRows ...[]*NgingAccessLog) map[string][]*NgingAccessLog
func (*NgingAccessLog) InitObjects ¶
func (a *NgingAccessLog) InitObjects() *[]*NgingAccessLog
func (*NgingAccessLog) Insert ¶
func (a *NgingAccessLog) Insert() (pk interface{}, err error)
func (*NgingAccessLog) KeyBy ¶
func (a *NgingAccessLog) KeyBy(keyField string, inputRows ...[]*NgingAccessLog) map[string]*NgingAccessLog
func (*NgingAccessLog) ListByOffset ¶
func (*NgingAccessLog) ListPage ¶
func (a *NgingAccessLog) ListPage(cond *db.Compounds, sorts ...interface{}) error
func (*NgingAccessLog) ListPageAs ¶
func (a *NgingAccessLog) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
func (*NgingAccessLog) Name_ ¶
func (a *NgingAccessLog) Name_() string
func (*NgingAccessLog) New ¶
func (a *NgingAccessLog) New(structName string, connID ...int) factory.Model
func (*NgingAccessLog) NewObjects ¶
func (a *NgingAccessLog) NewObjects() factory.Ranger
func (*NgingAccessLog) NewParam ¶
func (a *NgingAccessLog) NewParam() *factory.Param
func (*NgingAccessLog) Objects ¶
func (a *NgingAccessLog) Objects() []*NgingAccessLog
func (*NgingAccessLog) Reset ¶
func (a *NgingAccessLog) Reset() *NgingAccessLog
func (*NgingAccessLog) Set ¶
func (a *NgingAccessLog) Set(key interface{}, value ...interface{})
func (*NgingAccessLog) SetContext ¶
func (a *NgingAccessLog) SetContext(ctx echo.Context) factory.Model
func (*NgingAccessLog) SetParam ¶
func (a *NgingAccessLog) SetParam(param *factory.Param) factory.Model
func (*NgingAccessLog) Short_ ¶
func (a *NgingAccessLog) Short_() string
func (*NgingAccessLog) Struct_ ¶
func (a *NgingAccessLog) Struct_() string
func (*NgingAccessLog) Trans ¶
func (a *NgingAccessLog) Trans() *factory.Transaction
func (*NgingAccessLog) UpdateByFields ¶
func (*NgingAccessLog) UpdateField ¶
func (*NgingAccessLog) UpdateFields ¶
func (*NgingAccessLog) UpdateValues ¶
func (a *NgingAccessLog) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
func (*NgingAccessLog) UpdatexByFields ¶
func (*NgingAccessLog) Use ¶
func (a *NgingAccessLog) Use(trans *factory.Transaction) factory.Model
func (*NgingAccessLog) Validate ¶
func (a *NgingAccessLog) Validate(field string, value interface{}) error
func (*NgingAccessLog) XObjects ¶
func (a *NgingAccessLog) XObjects() Slice_NgingAccessLog
type NgingVhost ¶
type NgingVhost struct { Id uint `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"` Name string `db:"name" bson:"name" comment:"网站名称" json:"name" xml:"name"` GroupId uint `db:"group_id" bson:"group_id" comment:"组" json:"group_id" xml:"group_id"` Domain string `db:"domain" bson:"domain" comment:"域名" json:"domain" xml:"domain"` Root string `db:"root" bson:"root" comment:"网站物理路径" json:"root" xml:"root"` Created uint `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"` Updated uint `db:"updated" bson:"updated" comment:"更新时间" json:"updated" xml:"updated"` Setting string `db:"setting" bson:"setting" comment:"设置" json:"setting" xml:"setting"` Disabled string `db:"disabled" bson:"disabled" comment:"是否停用" json:"disabled" xml:"disabled"` // contains filtered or unexported fields }
NgingVhost 虚拟主机
func NewNgingVhost ¶
func NewNgingVhost(ctx echo.Context) *NgingVhost
func (*NgingVhost) AsKV ¶
func (a *NgingVhost) AsKV(keyField string, valueField string, inputRows ...[]*NgingVhost) param.Store
func (*NgingVhost) BatchValidate ¶
func (a *NgingVhost) BatchValidate(kvset map[string]interface{}) error
func (*NgingVhost) Context ¶
func (a *NgingVhost) Context() echo.Context
func (*NgingVhost) FromRow ¶
func (a *NgingVhost) FromRow(row map[string]interface{})
func (*NgingVhost) GroupBy ¶
func (a *NgingVhost) GroupBy(keyField string, inputRows ...[]*NgingVhost) map[string][]*NgingVhost
func (*NgingVhost) InitObjects ¶
func (a *NgingVhost) InitObjects() *[]*NgingVhost
func (*NgingVhost) Insert ¶
func (a *NgingVhost) Insert() (pk interface{}, err error)
func (*NgingVhost) KeyBy ¶
func (a *NgingVhost) KeyBy(keyField string, inputRows ...[]*NgingVhost) map[string]*NgingVhost
func (*NgingVhost) ListByOffset ¶
func (*NgingVhost) ListPage ¶
func (a *NgingVhost) ListPage(cond *db.Compounds, sorts ...interface{}) error
func (*NgingVhost) ListPageAs ¶
func (a *NgingVhost) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
func (*NgingVhost) Name_ ¶
func (a *NgingVhost) Name_() string
func (*NgingVhost) NewObjects ¶
func (a *NgingVhost) NewObjects() factory.Ranger
func (*NgingVhost) NewParam ¶
func (a *NgingVhost) NewParam() *factory.Param
func (*NgingVhost) Objects ¶
func (a *NgingVhost) Objects() []*NgingVhost
func (*NgingVhost) Reset ¶
func (a *NgingVhost) Reset() *NgingVhost
func (*NgingVhost) Set ¶
func (a *NgingVhost) Set(key interface{}, value ...interface{})
func (*NgingVhost) SetContext ¶
func (a *NgingVhost) SetContext(ctx echo.Context) factory.Model
func (*NgingVhost) Short_ ¶
func (a *NgingVhost) Short_() string
func (*NgingVhost) Struct_ ¶
func (a *NgingVhost) Struct_() string
func (*NgingVhost) Trans ¶
func (a *NgingVhost) Trans() *factory.Transaction
func (*NgingVhost) UpdateByFields ¶
func (*NgingVhost) UpdateField ¶
func (*NgingVhost) UpdateFields ¶
func (*NgingVhost) UpdateValues ¶
func (a *NgingVhost) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
func (*NgingVhost) UpdatexByFields ¶
func (*NgingVhost) Use ¶
func (a *NgingVhost) Use(trans *factory.Transaction) factory.Model
func (*NgingVhost) Validate ¶
func (a *NgingVhost) Validate(field string, value interface{}) error
func (*NgingVhost) XObjects ¶
func (a *NgingVhost) XObjects() Slice_NgingVhost
type NgingVhostGroup ¶
type NgingVhostGroup struct { Id uint `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"` Uid uint `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"` Name string `db:"name" bson:"name" comment:"组名" json:"name" xml:"name"` Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"` Created uint `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"` // contains filtered or unexported fields }
NgingVhostGroup 虚拟主机组
func NewNgingVhostGroup ¶
func NewNgingVhostGroup(ctx echo.Context) *NgingVhostGroup
func (*NgingVhostGroup) AsKV ¶
func (a *NgingVhostGroup) AsKV(keyField string, valueField string, inputRows ...[]*NgingVhostGroup) param.Store
func (*NgingVhostGroup) BatchValidate ¶
func (a *NgingVhostGroup) BatchValidate(kvset map[string]interface{}) error
func (*NgingVhostGroup) CPAFrom ¶
func (a *NgingVhostGroup) CPAFrom(source factory.Model) factory.Model
func (*NgingVhostGroup) Context ¶
func (a *NgingVhostGroup) Context() echo.Context
func (*NgingVhostGroup) FromRow ¶
func (a *NgingVhostGroup) FromRow(row map[string]interface{})
func (*NgingVhostGroup) GroupBy ¶
func (a *NgingVhostGroup) GroupBy(keyField string, inputRows ...[]*NgingVhostGroup) map[string][]*NgingVhostGroup
func (*NgingVhostGroup) InitObjects ¶
func (a *NgingVhostGroup) InitObjects() *[]*NgingVhostGroup
func (*NgingVhostGroup) Insert ¶
func (a *NgingVhostGroup) Insert() (pk interface{}, err error)
func (*NgingVhostGroup) KeyBy ¶
func (a *NgingVhostGroup) KeyBy(keyField string, inputRows ...[]*NgingVhostGroup) map[string]*NgingVhostGroup
func (*NgingVhostGroup) ListByOffset ¶
func (*NgingVhostGroup) ListPage ¶
func (a *NgingVhostGroup) ListPage(cond *db.Compounds, sorts ...interface{}) error
func (*NgingVhostGroup) ListPageAs ¶
func (a *NgingVhostGroup) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error
func (*NgingVhostGroup) Name_ ¶
func (a *NgingVhostGroup) Name_() string
func (*NgingVhostGroup) New ¶
func (a *NgingVhostGroup) New(structName string, connID ...int) factory.Model
func (*NgingVhostGroup) NewObjects ¶
func (a *NgingVhostGroup) NewObjects() factory.Ranger
func (*NgingVhostGroup) NewParam ¶
func (a *NgingVhostGroup) NewParam() *factory.Param
func (*NgingVhostGroup) Objects ¶
func (a *NgingVhostGroup) Objects() []*NgingVhostGroup
func (*NgingVhostGroup) Reset ¶
func (a *NgingVhostGroup) Reset() *NgingVhostGroup
func (*NgingVhostGroup) Set ¶
func (a *NgingVhostGroup) Set(key interface{}, value ...interface{})
func (*NgingVhostGroup) SetContext ¶
func (a *NgingVhostGroup) SetContext(ctx echo.Context) factory.Model
func (*NgingVhostGroup) SetParam ¶
func (a *NgingVhostGroup) SetParam(param *factory.Param) factory.Model
func (*NgingVhostGroup) Short_ ¶
func (a *NgingVhostGroup) Short_() string
func (*NgingVhostGroup) Struct_ ¶
func (a *NgingVhostGroup) Struct_() string
func (*NgingVhostGroup) Trans ¶
func (a *NgingVhostGroup) Trans() *factory.Transaction
func (*NgingVhostGroup) UpdateByFields ¶
func (*NgingVhostGroup) UpdateField ¶
func (*NgingVhostGroup) UpdateFields ¶
func (*NgingVhostGroup) UpdateValues ¶
func (a *NgingVhostGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)
func (*NgingVhostGroup) UpdatexByFields ¶
func (*NgingVhostGroup) Use ¶
func (a *NgingVhostGroup) Use(trans *factory.Transaction) factory.Model
func (*NgingVhostGroup) Validate ¶
func (a *NgingVhostGroup) Validate(field string, value interface{}) error
func (*NgingVhostGroup) XObjects ¶
func (a *NgingVhostGroup) XObjects() Slice_NgingVhostGroup
type Slice_NgingAccessLog ¶
type Slice_NgingAccessLog []*NgingAccessLog
func (Slice_NgingAccessLog) AsKV ¶
func (s Slice_NgingAccessLog) AsKV(keyField string, valueField string) param.Store
func (Slice_NgingAccessLog) FromList ¶
func (s Slice_NgingAccessLog) FromList(data interface{}) Slice_NgingAccessLog
func (Slice_NgingAccessLog) GroupBy ¶
func (s Slice_NgingAccessLog) GroupBy(keyField string) map[string][]*NgingAccessLog
func (Slice_NgingAccessLog) KeyBy ¶
func (s Slice_NgingAccessLog) KeyBy(keyField string) map[string]*NgingAccessLog
func (Slice_NgingAccessLog) Range ¶
func (s Slice_NgingAccessLog) Range(fn func(m factory.Model) error) error
func (Slice_NgingAccessLog) RangeRaw ¶
func (s Slice_NgingAccessLog) RangeRaw(fn func(m *NgingAccessLog) error) error
type Slice_NgingVhost ¶
type Slice_NgingVhost []*NgingVhost
func (Slice_NgingVhost) AsKV ¶
func (s Slice_NgingVhost) AsKV(keyField string, valueField string) param.Store
func (Slice_NgingVhost) FromList ¶
func (s Slice_NgingVhost) FromList(data interface{}) Slice_NgingVhost
func (Slice_NgingVhost) GroupBy ¶
func (s Slice_NgingVhost) GroupBy(keyField string) map[string][]*NgingVhost
func (Slice_NgingVhost) KeyBy ¶
func (s Slice_NgingVhost) KeyBy(keyField string) map[string]*NgingVhost
func (Slice_NgingVhost) Range ¶
func (s Slice_NgingVhost) Range(fn func(m factory.Model) error) error
func (Slice_NgingVhost) RangeRaw ¶
func (s Slice_NgingVhost) RangeRaw(fn func(m *NgingVhost) error) error
type Slice_NgingVhostGroup ¶
type Slice_NgingVhostGroup []*NgingVhostGroup
func (Slice_NgingVhostGroup) AsKV ¶
func (s Slice_NgingVhostGroup) AsKV(keyField string, valueField string) param.Store
func (Slice_NgingVhostGroup) FromList ¶
func (s Slice_NgingVhostGroup) FromList(data interface{}) Slice_NgingVhostGroup
func (Slice_NgingVhostGroup) GroupBy ¶
func (s Slice_NgingVhostGroup) GroupBy(keyField string) map[string][]*NgingVhostGroup
func (Slice_NgingVhostGroup) KeyBy ¶
func (s Slice_NgingVhostGroup) KeyBy(keyField string) map[string]*NgingVhostGroup
func (Slice_NgingVhostGroup) Range ¶
func (s Slice_NgingVhostGroup) Range(fn func(m factory.Model) error) error
func (Slice_NgingVhostGroup) RangeRaw ¶
func (s Slice_NgingVhostGroup) RangeRaw(fn func(m *NgingVhostGroup) error) error
Click to show internal directories.
Click to hide internal directories.