dbschema

package
v1.5.14 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) AsMap

func (a *NgingAccessLog) AsMap(onlyFields ...string) param.Store

func (*NgingAccessLog) AsRow

func (a *NgingAccessLog) AsRow(onlyFields ...string) param.Store

func (*NgingAccessLog) Base_ added in v1.4.0

func (a *NgingAccessLog) Base_() factory.Baser

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) ConnID added in v1.1.0

func (a *NgingAccessLog) ConnID() int

func (*NgingAccessLog) Context

func (a *NgingAccessLog) Context() echo.Context

func (*NgingAccessLog) Count

func (a *NgingAccessLog) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingAccessLog) Delete

func (a *NgingAccessLog) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingAccessLog) Deletex

func (a *NgingAccessLog) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingAccessLog) EventOFF

func (a *NgingAccessLog) EventOFF(off ...bool) factory.Model

func (*NgingAccessLog) EventON

func (a *NgingAccessLog) EventON(on ...bool) factory.Model

func (*NgingAccessLog) Exists

func (a *NgingAccessLog) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingAccessLog) FromRow

func (a *NgingAccessLog) FromRow(row map[string]interface{})

func (*NgingAccessLog) Get

func (a *NgingAccessLog) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

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) List

func (a *NgingAccessLog) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingAccessLog) ListByOffset

func (a *NgingAccessLog) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

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) Namer

func (a *NgingAccessLog) Namer() func(factory.Model) 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) Param

func (a *NgingAccessLog) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingAccessLog) Reset

func (a *NgingAccessLog) Reset() *NgingAccessLog

func (*NgingAccessLog) Set

func (a *NgingAccessLog) Set(key interface{}, value ...interface{})

func (*NgingAccessLog) SetConnID

func (a *NgingAccessLog) SetConnID(connID int) factory.Model

func (*NgingAccessLog) SetContext

func (a *NgingAccessLog) SetContext(ctx echo.Context) factory.Model

func (*NgingAccessLog) SetNamer

func (a *NgingAccessLog) SetNamer(namer func(factory.Model) string) 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 (*NgingAccessLog) Update

func (a *NgingAccessLog) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingAccessLog) UpdateByFields

func (a *NgingAccessLog) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingAccessLog) UpdateField

func (a *NgingAccessLog) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingAccessLog) UpdateFields

func (a *NgingAccessLog) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingAccessLog) UpdateValues

func (a *NgingAccessLog) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingAccessLog) Updatex

func (a *NgingAccessLog) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingAccessLog) UpdatexByFields

func (a *NgingAccessLog) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingAccessLog) UpdatexField added in v1.2.0

func (a *NgingAccessLog) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingAccessLog) UpdatexFields added in v1.2.0

func (a *NgingAccessLog) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingAccessLog) Upsert

func (a *NgingAccessLog) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingAccessLog) Use

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"`
	SslEnabled  string `` /* 130-byte string literal not displayed */
	SslObtained uint   `db:"ssl_obtained" bson:"ssl_obtained" comment:"SSL证书获取时间" json:"ssl_obtained" xml:"ssl_obtained"`
	SslRenewed  uint   `db:"ssl_renewed" bson:"ssl_renewed" comment:"SSL证书最近更新时间" json:"ssl_renewed" xml:"ssl_renewed"`
	ServerIdent string `db:"server_ident" bson:"server_ident" comment:"服务器标识" json:"server_ident" xml:"server_ident"`
	// 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) AsMap

func (a *NgingVhost) AsMap(onlyFields ...string) param.Store

func (*NgingVhost) AsRow

func (a *NgingVhost) AsRow(onlyFields ...string) param.Store

func (*NgingVhost) Base_ added in v1.4.0

func (a *NgingVhost) Base_() factory.Baser

func (*NgingVhost) BatchValidate

func (a *NgingVhost) BatchValidate(kvset map[string]interface{}) error

func (*NgingVhost) CPAFrom

func (a *NgingVhost) CPAFrom(source factory.Model) factory.Model

func (*NgingVhost) ConnID added in v1.1.0

func (a *NgingVhost) ConnID() int

func (*NgingVhost) Context

func (a *NgingVhost) Context() echo.Context

func (*NgingVhost) Count

func (a *NgingVhost) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingVhost) Delete

func (a *NgingVhost) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhost) Deletex

func (a *NgingVhost) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhost) EventOFF

func (a *NgingVhost) EventOFF(off ...bool) factory.Model

func (*NgingVhost) EventON

func (a *NgingVhost) EventON(on ...bool) factory.Model

func (*NgingVhost) Exists

func (a *NgingVhost) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingVhost) FromRow

func (a *NgingVhost) FromRow(row map[string]interface{})

func (*NgingVhost) Get

func (a *NgingVhost) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

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) List

func (a *NgingVhost) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingVhost) ListByOffset

func (a *NgingVhost) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

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) Namer

func (a *NgingVhost) Namer() func(factory.Model) string

func (*NgingVhost) New

func (a *NgingVhost) New(structName string, connID ...int) factory.Model

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) Param

func (a *NgingVhost) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingVhost) Reset

func (a *NgingVhost) Reset() *NgingVhost

func (*NgingVhost) Set

func (a *NgingVhost) Set(key interface{}, value ...interface{})

func (*NgingVhost) SetConnID

func (a *NgingVhost) SetConnID(connID int) factory.Model

func (*NgingVhost) SetContext

func (a *NgingVhost) SetContext(ctx echo.Context) factory.Model

func (*NgingVhost) SetNamer

func (a *NgingVhost) SetNamer(namer func(factory.Model) string) factory.Model

func (*NgingVhost) SetParam

func (a *NgingVhost) SetParam(param *factory.Param) 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.Transactioner

func (*NgingVhost) Update

func (a *NgingVhost) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhost) UpdateByFields

func (a *NgingVhost) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingVhost) UpdateField

func (a *NgingVhost) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingVhost) UpdateFields

func (a *NgingVhost) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingVhost) UpdateValues

func (a *NgingVhost) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingVhost) Updatex

func (a *NgingVhost) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhost) UpdatexByFields

func (a *NgingVhost) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingVhost) UpdatexField added in v1.2.0

func (a *NgingVhost) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhost) UpdatexFields added in v1.2.0

func (a *NgingVhost) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhost) Upsert

func (a *NgingVhost) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingVhost) Use

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) AsMap

func (a *NgingVhostGroup) AsMap(onlyFields ...string) param.Store

func (*NgingVhostGroup) AsRow

func (a *NgingVhostGroup) AsRow(onlyFields ...string) param.Store

func (*NgingVhostGroup) Base_ added in v1.4.0

func (a *NgingVhostGroup) Base_() factory.Baser

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) ConnID added in v1.1.0

func (a *NgingVhostGroup) ConnID() int

func (*NgingVhostGroup) Context

func (a *NgingVhostGroup) Context() echo.Context

func (*NgingVhostGroup) Count

func (a *NgingVhostGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingVhostGroup) Delete

func (a *NgingVhostGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhostGroup) Deletex

func (a *NgingVhostGroup) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhostGroup) EventOFF

func (a *NgingVhostGroup) EventOFF(off ...bool) factory.Model

func (*NgingVhostGroup) EventON

func (a *NgingVhostGroup) EventON(on ...bool) factory.Model

func (*NgingVhostGroup) Exists

func (a *NgingVhostGroup) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingVhostGroup) FromRow

func (a *NgingVhostGroup) FromRow(row map[string]interface{})

func (*NgingVhostGroup) Get

func (a *NgingVhostGroup) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

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) List

func (a *NgingVhostGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingVhostGroup) ListByOffset

func (a *NgingVhostGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

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) Namer

func (a *NgingVhostGroup) Namer() func(factory.Model) 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) Param

func (a *NgingVhostGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingVhostGroup) Reset

func (a *NgingVhostGroup) Reset() *NgingVhostGroup

func (*NgingVhostGroup) Set

func (a *NgingVhostGroup) Set(key interface{}, value ...interface{})

func (*NgingVhostGroup) SetConnID

func (a *NgingVhostGroup) SetConnID(connID int) factory.Model

func (*NgingVhostGroup) SetContext

func (a *NgingVhostGroup) SetContext(ctx echo.Context) factory.Model

func (*NgingVhostGroup) SetNamer

func (a *NgingVhostGroup) SetNamer(namer func(factory.Model) string) 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 (*NgingVhostGroup) Update

func (a *NgingVhostGroup) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhostGroup) UpdateByFields

func (a *NgingVhostGroup) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingVhostGroup) UpdateField

func (a *NgingVhostGroup) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingVhostGroup) UpdateFields

func (a *NgingVhostGroup) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingVhostGroup) UpdateValues

func (a *NgingVhostGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingVhostGroup) Updatex

func (a *NgingVhostGroup) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhostGroup) UpdatexByFields

func (a *NgingVhostGroup) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingVhostGroup) UpdatexField added in v1.2.0

func (a *NgingVhostGroup) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhostGroup) UpdatexFields added in v1.2.0

func (a *NgingVhostGroup) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhostGroup) Upsert

func (a *NgingVhostGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingVhostGroup) Use

func (*NgingVhostGroup) Validate

func (a *NgingVhostGroup) Validate(field string, value interface{}) error

func (*NgingVhostGroup) XObjects

func (a *NgingVhostGroup) XObjects() Slice_NgingVhostGroup

type NgingVhostServer added in v1.4.7

type NgingVhostServer struct {
	Id                      uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Engine                  string `db:"engine" bson:"engine" comment:"引擎类型" json:"engine" xml:"engine"`
	Environ                 string `db:"environ" bson:"environ" comment:"引擎环境" json:"environ" xml:"environ"`
	Ident                   string `db:"ident" bson:"ident" comment:"唯一标识" json:"ident" xml:"ident"`
	Name                    string `db:"name" bson:"name" comment:"引擎名称" json:"name" xml:"name"`
	ExecutableFile          string `` /* 134-byte string literal not displayed */
	Endpoint                string `db:"endpoint" bson:"endpoint" comment:"API接口网址" json:"endpoint" xml:"endpoint"`
	ConfigLocalFile         string `` /* 131-byte string literal not displayed */
	ConfigContainerFile     string `` /* 147-byte string literal not displayed */
	VhostConfigLocalDir     string `` /* 165-byte string literal not displayed */
	VhostConfigContainerDir string `` /* 181-byte string literal not displayed */
	CertLocalDir            string `` /* 131-byte string literal not displayed */
	CertContainerDir        string `` /* 147-byte string literal not displayed */
	CertAutoRenew           string `db:"cert_auto_renew" bson:"cert_auto_renew" comment:"证书自动更新" json:"cert_auto_renew" xml:"cert_auto_renew"`
	WorkDir                 string `db:"work_dir" bson:"work_dir" comment:"工作目录" json:"work_dir" xml:"work_dir"`
	Env                     string `db:"env" bson:"env" comment:"环境变量" json:"env" xml:"env"`
	CmdWithConfig           string `` /* 137-byte string literal not displayed */
	ConfigFileUpdated       uint   `` /* 139-byte string literal not displayed */
	AutoModifyConfig        string `` /* 146-byte string literal not displayed */
	EndpointTlsCert         string `db:"endpoint_tls_cert" bson:"endpoint_tls_cert" comment:"证书内容" json:"endpoint_tls_cert" xml:"endpoint_tls_cert"`
	EndpointTlsKey          string `db:"endpoint_tls_key" bson:"endpoint_tls_key" comment:"私钥内容" json:"endpoint_tls_key" xml:"endpoint_tls_key"`
	CertPathFormatKey       string `` /* 137-byte string literal not displayed */
	CertPathFormatCert      string `` /* 141-byte string literal not displayed */
	CertPathFormatTrust     string `` /* 151-byte string literal not displayed */
	Disabled                string `db:"disabled" bson:"disabled" comment:"是否(Y/N)禁用" json:"disabled" xml:"disabled"`
	Created                 uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated                 uint   `db:"updated" bson:"updated" comment:"更新时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

NgingVhostServer

func NewNgingVhostServer added in v1.4.7

func NewNgingVhostServer(ctx echo.Context) *NgingVhostServer

func (*NgingVhostServer) AsKV added in v1.4.7

func (a *NgingVhostServer) AsKV(keyField string, valueField string, inputRows ...[]*NgingVhostServer) param.Store

func (*NgingVhostServer) AsMap added in v1.4.7

func (a *NgingVhostServer) AsMap(onlyFields ...string) param.Store

func (*NgingVhostServer) AsRow added in v1.4.7

func (a *NgingVhostServer) AsRow(onlyFields ...string) param.Store

func (*NgingVhostServer) Base_ added in v1.4.7

func (a *NgingVhostServer) Base_() factory.Baser

func (*NgingVhostServer) BatchValidate added in v1.4.7

func (a *NgingVhostServer) BatchValidate(kvset map[string]interface{}) error

func (*NgingVhostServer) CPAFrom added in v1.4.7

func (a *NgingVhostServer) CPAFrom(source factory.Model) factory.Model

func (*NgingVhostServer) ConnID added in v1.4.7

func (a *NgingVhostServer) ConnID() int

func (*NgingVhostServer) Context added in v1.4.7

func (a *NgingVhostServer) Context() echo.Context

func (*NgingVhostServer) Count added in v1.4.7

func (a *NgingVhostServer) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingVhostServer) Delete added in v1.4.7

func (a *NgingVhostServer) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhostServer) Deletex added in v1.4.7

func (a *NgingVhostServer) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhostServer) EventOFF added in v1.4.7

func (a *NgingVhostServer) EventOFF(off ...bool) factory.Model

func (*NgingVhostServer) EventON added in v1.4.7

func (a *NgingVhostServer) EventON(on ...bool) factory.Model

func (*NgingVhostServer) Exists added in v1.4.7

func (a *NgingVhostServer) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingVhostServer) FromRow added in v1.4.7

func (a *NgingVhostServer) FromRow(row map[string]interface{})

func (*NgingVhostServer) Get added in v1.4.7

func (a *NgingVhostServer) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhostServer) GroupBy added in v1.4.7

func (a *NgingVhostServer) GroupBy(keyField string, inputRows ...[]*NgingVhostServer) map[string][]*NgingVhostServer

func (*NgingVhostServer) InitObjects added in v1.4.7

func (a *NgingVhostServer) InitObjects() *[]*NgingVhostServer

func (*NgingVhostServer) Insert added in v1.4.7

func (a *NgingVhostServer) Insert() (pk interface{}, err error)

func (*NgingVhostServer) KeyBy added in v1.4.7

func (a *NgingVhostServer) KeyBy(keyField string, inputRows ...[]*NgingVhostServer) map[string]*NgingVhostServer

func (*NgingVhostServer) List added in v1.4.7

func (a *NgingVhostServer) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingVhostServer) ListByOffset added in v1.4.7

func (a *NgingVhostServer) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*NgingVhostServer) ListPage added in v1.4.7

func (a *NgingVhostServer) ListPage(cond *db.Compounds, sorts ...interface{}) error

func (*NgingVhostServer) ListPageAs added in v1.4.7

func (a *NgingVhostServer) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error

func (*NgingVhostServer) Name_ added in v1.4.7

func (a *NgingVhostServer) Name_() string

func (*NgingVhostServer) Namer added in v1.4.7

func (a *NgingVhostServer) Namer() func(factory.Model) string

func (*NgingVhostServer) New added in v1.4.7

func (a *NgingVhostServer) New(structName string, connID ...int) factory.Model

func (*NgingVhostServer) NewObjects added in v1.4.7

func (a *NgingVhostServer) NewObjects() factory.Ranger

func (*NgingVhostServer) NewParam added in v1.4.7

func (a *NgingVhostServer) NewParam() *factory.Param

func (*NgingVhostServer) Objects added in v1.4.7

func (a *NgingVhostServer) Objects() []*NgingVhostServer

func (*NgingVhostServer) Param added in v1.4.7

func (a *NgingVhostServer) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingVhostServer) Reset added in v1.4.7

func (a *NgingVhostServer) Reset() *NgingVhostServer

func (*NgingVhostServer) Set added in v1.4.7

func (a *NgingVhostServer) Set(key interface{}, value ...interface{})

func (*NgingVhostServer) SetConnID added in v1.4.7

func (a *NgingVhostServer) SetConnID(connID int) factory.Model

func (*NgingVhostServer) SetContext added in v1.4.7

func (a *NgingVhostServer) SetContext(ctx echo.Context) factory.Model

func (*NgingVhostServer) SetNamer added in v1.4.7

func (a *NgingVhostServer) SetNamer(namer func(factory.Model) string) factory.Model

func (*NgingVhostServer) SetParam added in v1.4.7

func (a *NgingVhostServer) SetParam(param *factory.Param) factory.Model

func (*NgingVhostServer) Short_ added in v1.4.7

func (a *NgingVhostServer) Short_() string

func (*NgingVhostServer) Struct_ added in v1.4.7

func (a *NgingVhostServer) Struct_() string

func (*NgingVhostServer) Trans added in v1.4.7

func (*NgingVhostServer) Update added in v1.4.7

func (a *NgingVhostServer) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingVhostServer) UpdateByFields added in v1.4.7

func (a *NgingVhostServer) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingVhostServer) UpdateField added in v1.4.7

func (a *NgingVhostServer) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingVhostServer) UpdateFields added in v1.4.7

func (a *NgingVhostServer) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingVhostServer) UpdateValues added in v1.4.7

func (a *NgingVhostServer) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingVhostServer) Updatex added in v1.4.7

func (a *NgingVhostServer) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingVhostServer) UpdatexByFields added in v1.4.7

func (a *NgingVhostServer) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingVhostServer) UpdatexField added in v1.4.7

func (a *NgingVhostServer) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhostServer) UpdatexFields added in v1.4.7

func (a *NgingVhostServer) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingVhostServer) Upsert added in v1.4.7

func (a *NgingVhostServer) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingVhostServer) Use added in v1.4.7

func (*NgingVhostServer) Validate added in v1.4.7

func (a *NgingVhostServer) Validate(field string, value interface{}) error

func (*NgingVhostServer) XObjects added in v1.4.7

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

func (Slice_NgingAccessLog) Transform

func (s Slice_NgingAccessLog) Transform(transfers map[string]param.Transfer) []param.Store

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

func (Slice_NgingVhost) Transform

func (s Slice_NgingVhost) Transform(transfers map[string]param.Transfer) []param.Store

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

func (Slice_NgingVhostGroup) Transform

func (s Slice_NgingVhostGroup) Transform(transfers map[string]param.Transfer) []param.Store

type Slice_NgingVhostServer added in v1.4.7

type Slice_NgingVhostServer []*NgingVhostServer

func (Slice_NgingVhostServer) AsKV added in v1.4.7

func (s Slice_NgingVhostServer) AsKV(keyField string, valueField string) param.Store

func (Slice_NgingVhostServer) FromList added in v1.4.7

func (s Slice_NgingVhostServer) FromList(data interface{}) Slice_NgingVhostServer

func (Slice_NgingVhostServer) GroupBy added in v1.4.7

func (s Slice_NgingVhostServer) GroupBy(keyField string) map[string][]*NgingVhostServer

func (Slice_NgingVhostServer) KeyBy added in v1.4.7

func (s Slice_NgingVhostServer) KeyBy(keyField string) map[string]*NgingVhostServer

func (Slice_NgingVhostServer) Range added in v1.4.7

func (s Slice_NgingVhostServer) Range(fn func(m factory.Model) error) error

func (Slice_NgingVhostServer) RangeRaw added in v1.4.7

func (s Slice_NgingVhostServer) RangeRaw(fn func(m *NgingVhostServer) error) error

func (Slice_NgingVhostServer) Transform added in v1.4.7

func (s Slice_NgingVhostServer) Transform(transfers map[string]param.Transfer) []param.Store

Jump to

Keyboard shortcuts

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