dbschema

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: AGPL-3.0 Imports: 6 Imported by: 137

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 AccessLog

type AccessLog 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
}

AccessLog

func (*AccessLog) Add

func (a *AccessLog) Add() (pk interface{}, err error)

func (*AccessLog) AsKV

func (a *AccessLog) AsKV(keyField string, valueField string, inputRows ...[]*AccessLog) map[string]interface{}

func (*AccessLog) AsMap

func (a *AccessLog) AsMap() map[string]interface{}

func (*AccessLog) AsRow

func (a *AccessLog) AsRow() map[string]interface{}

func (*AccessLog) BatchValidate

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

func (*AccessLog) CPAFrom

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

func (*AccessLog) Context

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

func (*AccessLog) Count

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

func (*AccessLog) Delete

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

func (*AccessLog) Edit

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

func (*AccessLog) EventOFF

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

func (*AccessLog) EventON

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

func (*AccessLog) FromRow

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

func (*AccessLog) Get

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

func (*AccessLog) GroupBy

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

func (*AccessLog) InitObjects

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

func (*AccessLog) KeyBy

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

func (*AccessLog) List

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

func (*AccessLog) ListByOffset

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

func (*AccessLog) Name_

func (a *AccessLog) Name_() string

func (*AccessLog) Namer

func (a *AccessLog) Namer() func(string) string

func (*AccessLog) New

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

func (*AccessLog) NewObjects

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

func (*AccessLog) NewParam

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

func (*AccessLog) Objects

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

func (*AccessLog) Param

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

func (*AccessLog) Reset

func (a *AccessLog) Reset() *AccessLog

func (*AccessLog) Set

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

func (*AccessLog) SetConnID

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

func (*AccessLog) SetContext

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

func (*AccessLog) SetField

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

func (*AccessLog) SetFields

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

func (*AccessLog) SetNamer

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

func (*AccessLog) SetParam

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

func (*AccessLog) Short_

func (a *AccessLog) Short_() string

func (*AccessLog) Struct_

func (a *AccessLog) Struct_() string

func (*AccessLog) Trans

func (a *AccessLog) Trans() *factory.Transaction

func (*AccessLog) Upsert

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

func (*AccessLog) Use

func (a *AccessLog) Use(trans *factory.Transaction) factory.Model

func (*AccessLog) Validate

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

type CloudStorage

type CloudStorage 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"`
	Type     string `db:"type" bson:"type" comment:"存储类型(aws,oss,cos)" json:"type" xml:"type"`
	Key      string `db:"key" bson:"key" comment:"key" json:"key" xml:"key"`
	Secret   string `db:"secret" bson:"secret" comment:"密钥(加密处理)" json:"secret" xml:"secret"`
	Bucket   string `db:"bucket" bson:"bucket" comment:"存储桶" json:"bucket" xml:"bucket"`
	Endpoint string `db:"endpoint" bson:"endpoint" comment:"地域节点" json:"endpoint" xml:"endpoint"`
	Region   string `db:"region" bson:"region" comment:"地区" json:"region" xml:"region"`
	Secure   string `db:"secure" bson:"secure" comment:"是否(Y/N)HTTPS" json:"secure" xml:"secure"`
	Baseurl  string `db:"baseurl" bson:"baseurl" comment:"资源基础网址" json:"baseurl" xml:"baseurl"`
	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
}

CloudStorage 云存储账号

func (*CloudStorage) Add

func (a *CloudStorage) Add() (pk interface{}, err error)

func (*CloudStorage) AsKV

func (a *CloudStorage) AsKV(keyField string, valueField string, inputRows ...[]*CloudStorage) map[string]interface{}

func (*CloudStorage) AsMap

func (a *CloudStorage) AsMap() map[string]interface{}

func (*CloudStorage) AsRow

func (a *CloudStorage) AsRow() map[string]interface{}

func (*CloudStorage) BatchValidate

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

func (*CloudStorage) CPAFrom

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

func (*CloudStorage) Context

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

func (*CloudStorage) Count

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

func (*CloudStorage) Delete

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

func (*CloudStorage) Edit

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

func (*CloudStorage) EventOFF

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

func (*CloudStorage) EventON

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

func (*CloudStorage) FromRow

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

func (*CloudStorage) Get

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

func (*CloudStorage) GroupBy

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

func (*CloudStorage) InitObjects

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

func (*CloudStorage) KeyBy

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

func (*CloudStorage) List

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

func (*CloudStorage) ListByOffset

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

func (*CloudStorage) Name_

func (a *CloudStorage) Name_() string

func (*CloudStorage) Namer

func (a *CloudStorage) Namer() func(string) string

func (*CloudStorage) New

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

func (*CloudStorage) NewObjects

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

func (*CloudStorage) NewParam

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

func (*CloudStorage) Objects

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

func (*CloudStorage) Param

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

func (*CloudStorage) Reset

func (a *CloudStorage) Reset() *CloudStorage

func (*CloudStorage) Set

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

func (*CloudStorage) SetConnID

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

func (*CloudStorage) SetContext

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

func (*CloudStorage) SetField

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

func (*CloudStorage) SetFields

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

func (*CloudStorage) SetNamer

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

func (*CloudStorage) SetParam

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

func (*CloudStorage) Short_

func (a *CloudStorage) Short_() string

func (*CloudStorage) Struct_

func (a *CloudStorage) Struct_() string

func (*CloudStorage) Trans

func (a *CloudStorage) Trans() *factory.Transaction

func (*CloudStorage) Upsert

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

func (*CloudStorage) Use

func (a *CloudStorage) Use(trans *factory.Transaction) factory.Model

func (*CloudStorage) Validate

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

type CodeInvitation

type CodeInvitation struct {
	Id       uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Uid      uint   `db:"uid" bson:"uid" comment:"创建者" json:"uid" xml:"uid"`
	RecvUid  uint   `db:"recv_uid" bson:"recv_uid" comment:"使用者" json:"recv_uid" xml:"recv_uid"`
	Code     string `db:"code" bson:"code" comment:"邀请码" json:"code" xml:"code"`
	Created  uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Used     uint   `db:"used" bson:"used" comment:"使用时间" json:"used" xml:"used"`
	Start    uint   `db:"start" bson:"start" comment:"有效时间" json:"start" xml:"start"`
	End      uint   `db:"end" bson:"end" comment:"失效时间" json:"end" xml:"end"`
	Disabled string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	RoleIds  string `db:"role_ids" bson:"role_ids" comment:"注册为角色(多个用“,”分隔开)" json:"role_ids" xml:"role_ids"`
	// contains filtered or unexported fields
}

CodeInvitation 邀请码

func (*CodeInvitation) Add

func (a *CodeInvitation) Add() (pk interface{}, err error)

func (*CodeInvitation) AsKV

func (a *CodeInvitation) AsKV(keyField string, valueField string, inputRows ...[]*CodeInvitation) map[string]interface{}

func (*CodeInvitation) AsMap

func (a *CodeInvitation) AsMap() map[string]interface{}

func (*CodeInvitation) AsRow

func (a *CodeInvitation) AsRow() map[string]interface{}

func (*CodeInvitation) BatchValidate

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

func (*CodeInvitation) CPAFrom

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

func (*CodeInvitation) Context

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

func (*CodeInvitation) Count

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

func (*CodeInvitation) Delete

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

func (*CodeInvitation) Edit

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

func (*CodeInvitation) EventOFF

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

func (*CodeInvitation) EventON

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

func (*CodeInvitation) FromRow

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

func (*CodeInvitation) Get

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

func (*CodeInvitation) GroupBy

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

func (*CodeInvitation) InitObjects

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

func (*CodeInvitation) KeyBy

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

func (*CodeInvitation) List

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

func (*CodeInvitation) ListByOffset

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

func (*CodeInvitation) Name_

func (a *CodeInvitation) Name_() string

func (*CodeInvitation) Namer

func (a *CodeInvitation) Namer() func(string) string

func (*CodeInvitation) New

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

func (*CodeInvitation) NewObjects

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

func (*CodeInvitation) NewParam

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

func (*CodeInvitation) Objects

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

func (*CodeInvitation) Param

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

func (*CodeInvitation) Reset

func (a *CodeInvitation) Reset() *CodeInvitation

func (*CodeInvitation) Set

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

func (*CodeInvitation) SetConnID

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

func (*CodeInvitation) SetContext

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

func (*CodeInvitation) SetField

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

func (*CodeInvitation) SetFields

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

func (*CodeInvitation) SetNamer

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

func (*CodeInvitation) SetParam

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

func (*CodeInvitation) Short_

func (a *CodeInvitation) Short_() string

func (*CodeInvitation) Struct_

func (a *CodeInvitation) Struct_() string

func (*CodeInvitation) Trans

func (a *CodeInvitation) Trans() *factory.Transaction

func (*CodeInvitation) Upsert

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

func (*CodeInvitation) Use

func (*CodeInvitation) Validate

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

type CodeVerification

type CodeVerification struct {
	Id         uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Code       string `db:"code" bson:"code" comment:"验证码" json:"code" xml:"code"`
	Created    uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	OwnerId    uint64 `db:"owner_id" bson:"owner_id" comment:"所有者ID" json:"owner_id" xml:"owner_id"`
	OwnerType  string `db:"owner_type" bson:"owner_type" comment:"所有者类型" json:"owner_type" xml:"owner_type"`
	Used       uint   `db:"used" bson:"used" comment:"使用时间" json:"used" xml:"used"`
	Purpose    string `db:"purpose" bson:"purpose" comment:"目的" json:"purpose" xml:"purpose"`
	Start      uint   `db:"start" bson:"start" comment:"有效时间" json:"start" xml:"start"`
	End        uint   `db:"end" bson:"end" comment:"失效时间" json:"end" xml:"end"`
	Disabled   string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	SendMethod string `db:"send_method" bson:"send_method" comment:"发送方式(mobile-手机;email-邮箱)" json:"send_method" xml:"send_method"`
	SendTo     string `db:"send_to" bson:"send_to" comment:"发送目标" json:"send_to" xml:"send_to"`
	// contains filtered or unexported fields
}

CodeVerification 验证码

func (*CodeVerification) Add

func (a *CodeVerification) Add() (pk interface{}, err error)

func (*CodeVerification) AsKV

func (a *CodeVerification) AsKV(keyField string, valueField string, inputRows ...[]*CodeVerification) map[string]interface{}

func (*CodeVerification) AsMap

func (a *CodeVerification) AsMap() map[string]interface{}

func (*CodeVerification) AsRow

func (a *CodeVerification) AsRow() map[string]interface{}

func (*CodeVerification) BatchValidate

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

func (*CodeVerification) CPAFrom

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

func (*CodeVerification) Context

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

func (*CodeVerification) Count

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

func (*CodeVerification) Delete

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

func (*CodeVerification) Edit

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

func (*CodeVerification) EventOFF

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

func (*CodeVerification) EventON

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

func (*CodeVerification) FromRow

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

func (*CodeVerification) Get

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

func (*CodeVerification) GroupBy

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

func (*CodeVerification) InitObjects

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

func (*CodeVerification) KeyBy

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

func (*CodeVerification) List

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

func (*CodeVerification) ListByOffset

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

func (*CodeVerification) Name_

func (a *CodeVerification) Name_() string

func (*CodeVerification) Namer

func (a *CodeVerification) Namer() func(string) string

func (*CodeVerification) New

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

func (*CodeVerification) NewObjects

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

func (*CodeVerification) NewParam

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

func (*CodeVerification) Objects

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

func (*CodeVerification) Param

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

func (*CodeVerification) Reset

func (a *CodeVerification) Reset() *CodeVerification

func (*CodeVerification) Set

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

func (*CodeVerification) SetConnID

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

func (*CodeVerification) SetContext

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

func (*CodeVerification) SetField

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

func (*CodeVerification) SetFields

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

func (*CodeVerification) SetNamer

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

func (*CodeVerification) SetParam

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

func (*CodeVerification) Short_

func (a *CodeVerification) Short_() string

func (*CodeVerification) Struct_

func (a *CodeVerification) Struct_() string

func (*CodeVerification) Trans

func (a *CodeVerification) Trans() *factory.Transaction

func (*CodeVerification) Upsert

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

func (*CodeVerification) Use

func (*CodeVerification) Validate

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

type CollectorExport

type CollectorExport struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	PageRoot    uint   `db:"page_root" bson:"page_root" comment:"根页面ID" json:"page_root" xml:"page_root"`
	PageId      uint   `db:"page_id" bson:"page_id" comment:"页面ID" json:"page_id" xml:"page_id"`
	GroupId     uint   `db:"group_id" bson:"group_id" comment:"组ID" json:"group_id" xml:"group_id"`
	Mapping     string `db:"mapping" bson:"mapping" comment:"字段映射" json:"mapping" xml:"mapping"`
	Dest        string `db:"dest" bson:"dest" comment:"目标" json:"dest" xml:"dest"`
	DestType    string `db:"dest_type" bson:"dest_type" comment:"目标类型" json:"dest_type" xml:"dest_type"`
	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"`
	Exported    uint   `db:"exported" bson:"exported" comment:"最近导出时间" json:"exported" xml:"exported"`
	Disabled    string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	// contains filtered or unexported fields
}

CollectorExport 导出规则

func (*CollectorExport) Add

func (a *CollectorExport) Add() (pk interface{}, err error)

func (*CollectorExport) AsKV

func (a *CollectorExport) AsKV(keyField string, valueField string, inputRows ...[]*CollectorExport) map[string]interface{}

func (*CollectorExport) AsMap

func (a *CollectorExport) AsMap() map[string]interface{}

func (*CollectorExport) AsRow

func (a *CollectorExport) AsRow() map[string]interface{}

func (*CollectorExport) BatchValidate

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

func (*CollectorExport) CPAFrom

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

func (*CollectorExport) Context

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

func (*CollectorExport) Count

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

func (*CollectorExport) Delete

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

func (*CollectorExport) Edit

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

func (*CollectorExport) EventOFF

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

func (*CollectorExport) EventON

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

func (*CollectorExport) FromRow

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

func (*CollectorExport) Get

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

func (*CollectorExport) GroupBy

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

func (*CollectorExport) InitObjects

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

func (*CollectorExport) KeyBy

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

func (*CollectorExport) List

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

func (*CollectorExport) ListByOffset

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

func (*CollectorExport) Name_

func (a *CollectorExport) Name_() string

func (*CollectorExport) Namer

func (a *CollectorExport) Namer() func(string) string

func (*CollectorExport) New

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

func (*CollectorExport) NewObjects

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

func (*CollectorExport) NewParam

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

func (*CollectorExport) Objects

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

func (*CollectorExport) Param

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

func (*CollectorExport) Reset

func (a *CollectorExport) Reset() *CollectorExport

func (*CollectorExport) Set

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

func (*CollectorExport) SetConnID

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

func (*CollectorExport) SetContext

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

func (*CollectorExport) SetField

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

func (*CollectorExport) SetFields

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

func (*CollectorExport) SetNamer

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

func (*CollectorExport) SetParam

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

func (*CollectorExport) Short_

func (a *CollectorExport) Short_() string

func (*CollectorExport) Struct_

func (a *CollectorExport) Struct_() string

func (*CollectorExport) Trans

func (a *CollectorExport) Trans() *factory.Transaction

func (*CollectorExport) Upsert

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

func (*CollectorExport) Use

func (*CollectorExport) Validate

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

type CollectorExportLog

type CollectorExportLog struct {
	Id       uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	PageId   uint   `db:"page_id" bson:"page_id" comment:"页面规则ID" json:"page_id" xml:"page_id"`
	ExportId uint   `db:"export_id" bson:"export_id" comment:"导出方案ID" json:"export_id" xml:"export_id"`
	Result   string `db:"result" bson:"result" comment:"结果" json:"result" xml:"result"`
	Status   string `db:"status" bson:"status" comment:"状态" json:"status" xml:"status"`
	Created  uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

CollectorExportLog 导出日志

func (*CollectorExportLog) Add

func (a *CollectorExportLog) Add() (pk interface{}, err error)

func (*CollectorExportLog) AsKV

func (a *CollectorExportLog) AsKV(keyField string, valueField string, inputRows ...[]*CollectorExportLog) map[string]interface{}

func (*CollectorExportLog) AsMap

func (a *CollectorExportLog) AsMap() map[string]interface{}

func (*CollectorExportLog) AsRow

func (a *CollectorExportLog) AsRow() map[string]interface{}

func (*CollectorExportLog) BatchValidate

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

func (*CollectorExportLog) CPAFrom

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

func (*CollectorExportLog) Context

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

func (*CollectorExportLog) Count

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

func (*CollectorExportLog) Delete

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

func (*CollectorExportLog) Edit

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

func (*CollectorExportLog) EventOFF

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

func (*CollectorExportLog) EventON

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

func (*CollectorExportLog) FromRow

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

func (*CollectorExportLog) Get

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

func (*CollectorExportLog) GroupBy

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

func (*CollectorExportLog) InitObjects

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

func (*CollectorExportLog) KeyBy

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

func (*CollectorExportLog) List

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

func (*CollectorExportLog) ListByOffset

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

func (*CollectorExportLog) Name_

func (a *CollectorExportLog) Name_() string

func (*CollectorExportLog) Namer

func (a *CollectorExportLog) Namer() func(string) string

func (*CollectorExportLog) New

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

func (*CollectorExportLog) NewObjects

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

func (*CollectorExportLog) NewParam

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

func (*CollectorExportLog) Objects

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

func (*CollectorExportLog) Param

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

func (*CollectorExportLog) Reset

func (*CollectorExportLog) Set

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

func (*CollectorExportLog) SetConnID

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

func (*CollectorExportLog) SetContext

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

func (*CollectorExportLog) SetField

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

func (*CollectorExportLog) SetFields

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

func (*CollectorExportLog) SetNamer

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

func (*CollectorExportLog) SetParam

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

func (*CollectorExportLog) Short_

func (a *CollectorExportLog) Short_() string

func (*CollectorExportLog) Struct_

func (a *CollectorExportLog) Struct_() string

func (*CollectorExportLog) Trans

func (*CollectorExportLog) Upsert

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

func (*CollectorExportLog) Use

func (*CollectorExportLog) Validate

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

type CollectorGroup

type CollectorGroup struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" 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"`
	Type        string `db:"type" bson:"type" comment:"类型(page-页面规则组;export-导出规则组)" json:"type" xml:"type"`
	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
}

CollectorGroup 采集规则组

func (*CollectorGroup) Add

func (a *CollectorGroup) Add() (pk interface{}, err error)

func (*CollectorGroup) AsKV

func (a *CollectorGroup) AsKV(keyField string, valueField string, inputRows ...[]*CollectorGroup) map[string]interface{}

func (*CollectorGroup) AsMap

func (a *CollectorGroup) AsMap() map[string]interface{}

func (*CollectorGroup) AsRow

func (a *CollectorGroup) AsRow() map[string]interface{}

func (*CollectorGroup) BatchValidate

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

func (*CollectorGroup) CPAFrom

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

func (*CollectorGroup) Context

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

func (*CollectorGroup) Count

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

func (*CollectorGroup) Delete

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

func (*CollectorGroup) Edit

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

func (*CollectorGroup) EventOFF

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

func (*CollectorGroup) EventON

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

func (*CollectorGroup) FromRow

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

func (*CollectorGroup) Get

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

func (*CollectorGroup) GroupBy

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

func (*CollectorGroup) InitObjects

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

func (*CollectorGroup) KeyBy

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

func (*CollectorGroup) List

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

func (*CollectorGroup) ListByOffset

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

func (*CollectorGroup) Name_

func (a *CollectorGroup) Name_() string

func (*CollectorGroup) Namer

func (a *CollectorGroup) Namer() func(string) string

func (*CollectorGroup) New

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

func (*CollectorGroup) NewObjects

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

func (*CollectorGroup) NewParam

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

func (*CollectorGroup) Objects

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

func (*CollectorGroup) Param

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

func (*CollectorGroup) Reset

func (a *CollectorGroup) Reset() *CollectorGroup

func (*CollectorGroup) Set

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

func (*CollectorGroup) SetConnID

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

func (*CollectorGroup) SetContext

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

func (*CollectorGroup) SetField

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

func (*CollectorGroup) SetFields

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

func (*CollectorGroup) SetNamer

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

func (*CollectorGroup) SetParam

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

func (*CollectorGroup) Short_

func (a *CollectorGroup) Short_() string

func (*CollectorGroup) Struct_

func (a *CollectorGroup) Struct_() string

func (*CollectorGroup) Trans

func (a *CollectorGroup) Trans() *factory.Transaction

func (*CollectorGroup) Upsert

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

func (*CollectorGroup) Use

func (*CollectorGroup) Validate

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

type CollectorHistory

type CollectorHistory struct {
	Id           uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	ParentId     uint64 `db:"parent_id" bson:"parent_id" comment:"父ID" json:"parent_id" xml:"parent_id"`
	PageId       uint   `db:"page_id" bson:"page_id" comment:"页面ID" json:"page_id" xml:"page_id"`
	PageParentId uint   `db:"page_parent_id" bson:"page_parent_id" comment:"父页面ID" json:"page_parent_id" xml:"page_parent_id"`
	PageRootId   uint   `db:"page_root_id" bson:"page_root_id" comment:"入口页面ID" json:"page_root_id" xml:"page_root_id"`
	HasChild     string `db:"has_child" bson:"has_child" comment:"是否有子级" json:"has_child" xml:"has_child"`
	Url          string `db:"url" bson:"url" comment:"页面网址" json:"url" xml:"url"`
	UrlMd5       string `db:"url_md5" bson:"url_md5" comment:"页面网址MD5" json:"url_md5" xml:"url_md5"`
	Title        string `db:"title" bson:"title" comment:"页面标题" json:"title" xml:"title"`
	Content      string `db:"content" bson:"content" comment:"页面内容MD5" json:"content" xml:"content"`
	RuleMd5      string `db:"rule_md5" bson:"rule_md5" comment:"规则标识MD5" json:"rule_md5" xml:"rule_md5"`
	Data         string `db:"data" bson:"data" comment:"采集到的数据" json:"data" xml:"data"`
	Created      uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Exported     uint   `db:"exported" bson:"exported" comment:"最近导出时间" json:"exported" xml:"exported"`
	// contains filtered or unexported fields
}

CollectorHistory 采集历史

func (*CollectorHistory) Add

func (a *CollectorHistory) Add() (pk interface{}, err error)

func (*CollectorHistory) AsKV

func (a *CollectorHistory) AsKV(keyField string, valueField string, inputRows ...[]*CollectorHistory) map[string]interface{}

func (*CollectorHistory) AsMap

func (a *CollectorHistory) AsMap() map[string]interface{}

func (*CollectorHistory) AsRow

func (a *CollectorHistory) AsRow() map[string]interface{}

func (*CollectorHistory) BatchValidate

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

func (*CollectorHistory) CPAFrom

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

func (*CollectorHistory) Context

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

func (*CollectorHistory) Count

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

func (*CollectorHistory) Delete

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

func (*CollectorHistory) Edit

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

func (*CollectorHistory) EventOFF

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

func (*CollectorHistory) EventON

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

func (*CollectorHistory) FromRow

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

func (*CollectorHistory) Get

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

func (*CollectorHistory) GroupBy

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

func (*CollectorHistory) InitObjects

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

func (*CollectorHistory) KeyBy

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

func (*CollectorHistory) List

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

func (*CollectorHistory) ListByOffset

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

func (*CollectorHistory) Name_

func (a *CollectorHistory) Name_() string

func (*CollectorHistory) Namer

func (a *CollectorHistory) Namer() func(string) string

func (*CollectorHistory) New

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

func (*CollectorHistory) NewObjects

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

func (*CollectorHistory) NewParam

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

func (*CollectorHistory) Objects

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

func (*CollectorHistory) Param

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

func (*CollectorHistory) Reset

func (a *CollectorHistory) Reset() *CollectorHistory

func (*CollectorHistory) Set

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

func (*CollectorHistory) SetConnID

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

func (*CollectorHistory) SetContext

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

func (*CollectorHistory) SetField

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

func (*CollectorHistory) SetFields

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

func (*CollectorHistory) SetNamer

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

func (*CollectorHistory) SetParam

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

func (*CollectorHistory) Short_

func (a *CollectorHistory) Short_() string

func (*CollectorHistory) Struct_

func (a *CollectorHistory) Struct_() string

func (*CollectorHistory) Trans

func (a *CollectorHistory) Trans() *factory.Transaction

func (*CollectorHistory) Upsert

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

func (*CollectorHistory) Use

func (*CollectorHistory) Validate

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

type CollectorPage

type CollectorPage struct {
	Id            uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	ParentId      uint   `db:"parent_id" bson:"parent_id" comment:"父级规则" json:"parent_id" xml:"parent_id"`
	RootId        uint   `db:"root_id" bson:"root_id" comment:"根页面ID" json:"root_id" xml:"root_id"`
	HasChild      string `db:"has_child" bson:"has_child" comment:"是否有子级" json:"has_child" xml:"has_child"`
	Uid           uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	GroupId       uint   `db:"group_id" bson:"group_id" comment:"规则组" json:"group_id" xml:"group_id"`
	Name          string `db:"name" bson:"name" comment:"规则名" json:"name" xml:"name"`
	Description   string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	EnterUrl      string `db:"enter_url" bson:"enter_url" comment:"入口网址模板(网址一行一个)" json:"enter_url" xml:"enter_url"`
	Sort          int    `db:"sort" bson:"sort" comment:"排序" json:"sort" xml:"sort"`
	Created       uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Browser       string `db:"browser" bson:"browser" comment:"浏览器" json:"browser" xml:"browser"`
	Type          string `db:"type" bson:"type" comment:"页面类型" json:"type" xml:"type"`
	ScopeRule     string `db:"scope_rule" bson:"scope_rule" comment:"页面区域规则" json:"scope_rule" xml:"scope_rule"`
	DuplicateRule string `` /* 209-byte string literal not displayed */
	ContentType   string `db:"content_type" bson:"content_type" comment:"内容类型" json:"content_type" xml:"content_type"`
	Charset       string `db:"charset" bson:"charset" comment:"字符集" json:"charset" xml:"charset"`
	Timeout       uint   `db:"timeout" bson:"timeout" comment:"超时时间(秒)" json:"timeout" xml:"timeout"`
	Waits         string `db:"waits" bson:"waits" comment:"等待时间范围(秒),例如2-8" json:"waits" xml:"waits"`
	Proxy         string `db:"proxy" bson:"proxy" comment:"代理地址" json:"proxy" xml:"proxy"`
	// contains filtered or unexported fields
}

CollectorPage 采集页面

func (*CollectorPage) Add

func (a *CollectorPage) Add() (pk interface{}, err error)

func (*CollectorPage) AsKV

func (a *CollectorPage) AsKV(keyField string, valueField string, inputRows ...[]*CollectorPage) map[string]interface{}

func (*CollectorPage) AsMap

func (a *CollectorPage) AsMap() map[string]interface{}

func (*CollectorPage) AsRow

func (a *CollectorPage) AsRow() map[string]interface{}

func (*CollectorPage) BatchValidate

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

func (*CollectorPage) CPAFrom

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

func (*CollectorPage) Context

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

func (*CollectorPage) Count

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

func (*CollectorPage) Delete

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

func (*CollectorPage) Edit

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

func (*CollectorPage) EventOFF

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

func (*CollectorPage) EventON

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

func (*CollectorPage) FromRow

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

func (*CollectorPage) Get

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

func (*CollectorPage) GroupBy

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

func (*CollectorPage) InitObjects

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

func (*CollectorPage) KeyBy

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

func (*CollectorPage) List

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

func (*CollectorPage) ListByOffset

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

func (*CollectorPage) Name_

func (a *CollectorPage) Name_() string

func (*CollectorPage) Namer

func (a *CollectorPage) Namer() func(string) string

func (*CollectorPage) New

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

func (*CollectorPage) NewObjects

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

func (*CollectorPage) NewParam

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

func (*CollectorPage) Objects

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

func (*CollectorPage) Param

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

func (*CollectorPage) Reset

func (a *CollectorPage) Reset() *CollectorPage

func (*CollectorPage) Set

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

func (*CollectorPage) SetConnID

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

func (*CollectorPage) SetContext

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

func (*CollectorPage) SetField

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

func (*CollectorPage) SetFields

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

func (*CollectorPage) SetNamer

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

func (*CollectorPage) SetParam

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

func (*CollectorPage) Short_

func (a *CollectorPage) Short_() string

func (*CollectorPage) Struct_

func (a *CollectorPage) Struct_() string

func (*CollectorPage) Trans

func (a *CollectorPage) Trans() *factory.Transaction

func (*CollectorPage) Upsert

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

func (*CollectorPage) Use

func (*CollectorPage) Validate

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

type CollectorRule

type CollectorRule struct {
	Id      uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	PageId  uint   `db:"page_id" bson:"page_id" comment:"页面ID" json:"page_id" xml:"page_id"`
	Name    string `db:"name" bson:"name" comment:"保存匹配结果的变量名" json:"name" xml:"name"`
	Rule    string `db:"rule" bson:"rule" comment:"规则" json:"rule" xml:"rule"`
	Type    string `db:"type" bson:"type" comment:"数据类型" json:"type" xml:"type"`
	Filter  string `db:"filter" bson:"filter" comment:"过滤器" json:"filter" xml:"filter"`
	Created uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Sort    int    `db:"sort" bson:"sort" comment:"排序" json:"sort" xml:"sort"`
	// contains filtered or unexported fields
}

CollectorRule 页面中的元素采集规则

func (*CollectorRule) Add

func (a *CollectorRule) Add() (pk interface{}, err error)

func (*CollectorRule) AsKV

func (a *CollectorRule) AsKV(keyField string, valueField string, inputRows ...[]*CollectorRule) map[string]interface{}

func (*CollectorRule) AsMap

func (a *CollectorRule) AsMap() map[string]interface{}

func (*CollectorRule) AsRow

func (a *CollectorRule) AsRow() map[string]interface{}

func (*CollectorRule) BatchValidate

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

func (*CollectorRule) CPAFrom

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

func (*CollectorRule) Context

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

func (*CollectorRule) Count

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

func (*CollectorRule) Delete

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

func (*CollectorRule) Edit

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

func (*CollectorRule) EventOFF

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

func (*CollectorRule) EventON

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

func (*CollectorRule) FromRow

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

func (*CollectorRule) Get

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

func (*CollectorRule) GroupBy

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

func (*CollectorRule) InitObjects

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

func (*CollectorRule) KeyBy

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

func (*CollectorRule) List

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

func (*CollectorRule) ListByOffset

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

func (*CollectorRule) Name_

func (a *CollectorRule) Name_() string

func (*CollectorRule) Namer

func (a *CollectorRule) Namer() func(string) string

func (*CollectorRule) New

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

func (*CollectorRule) NewObjects

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

func (*CollectorRule) NewParam

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

func (*CollectorRule) Objects

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

func (*CollectorRule) Param

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

func (*CollectorRule) Reset

func (a *CollectorRule) Reset() *CollectorRule

func (*CollectorRule) Set

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

func (*CollectorRule) SetConnID

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

func (*CollectorRule) SetContext

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

func (*CollectorRule) SetField

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

func (*CollectorRule) SetFields

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

func (*CollectorRule) SetNamer

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

func (*CollectorRule) SetParam

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

func (*CollectorRule) Short_

func (a *CollectorRule) Short_() string

func (*CollectorRule) Struct_

func (a *CollectorRule) Struct_() string

func (*CollectorRule) Trans

func (a *CollectorRule) Trans() *factory.Transaction

func (*CollectorRule) Upsert

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

func (*CollectorRule) Use

func (*CollectorRule) Validate

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

type Command

type Command 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"`
	Description   string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	Command       string `db:"command" bson:"command" comment:"命令" json:"command" xml:"command"`
	WorkDirectory string `db:"work_directory" bson:"work_directory" comment:"工作目录" json:"work_directory" xml:"work_directory"`
	Env           string `db:"env" bson:"env" comment:"环境变量(一行一个,格式为:var1=val1)" json:"env" xml:"env"`
	Created       uint   `db:"created" bson:"created" comment:"添加时间" json:"created" xml:"created"`
	Updated       uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	Disabled      string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	Remote        string `db:"remote" bson:"remote" comment:"是否执行远程SSH命令" json:"remote" xml:"remote"`
	SshAccountId  uint   `db:"ssh_account_id" bson:"ssh_account_id" comment:"SSH账号ID" json:"ssh_account_id" xml:"ssh_account_id"`
	// contains filtered or unexported fields
}

Command 指令集

func (*Command) Add

func (a *Command) Add() (pk interface{}, err error)

func (*Command) AsKV

func (a *Command) AsKV(keyField string, valueField string, inputRows ...[]*Command) map[string]interface{}

func (*Command) AsMap

func (a *Command) AsMap() map[string]interface{}

func (*Command) AsRow

func (a *Command) AsRow() map[string]interface{}

func (*Command) BatchValidate

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

func (*Command) CPAFrom

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

func (*Command) Context

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

func (*Command) Count

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

func (*Command) Delete

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

func (*Command) Edit

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

func (*Command) EventOFF

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

func (*Command) EventON

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

func (*Command) FromRow

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

func (*Command) Get

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

func (*Command) GroupBy

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

func (*Command) InitObjects

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

func (*Command) KeyBy

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

func (*Command) List

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

func (*Command) ListByOffset

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

func (*Command) Name_

func (a *Command) Name_() string

func (*Command) Namer

func (a *Command) Namer() func(string) string

func (*Command) New

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

func (*Command) NewObjects

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

func (*Command) NewParam

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

func (*Command) Objects

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

func (*Command) Param

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

func (*Command) Reset

func (a *Command) Reset() *Command

func (*Command) Set

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

func (*Command) SetConnID

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

func (*Command) SetContext

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

func (*Command) SetField

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

func (*Command) SetFields

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

func (*Command) SetNamer

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

func (*Command) SetParam

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

func (*Command) Short_

func (a *Command) Short_() string

func (*Command) Struct_

func (a *Command) Struct_() string

func (*Command) Trans

func (a *Command) Trans() *factory.Transaction

func (*Command) Upsert

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

func (*Command) Use

func (a *Command) Use(trans *factory.Transaction) factory.Model

func (*Command) Validate

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

type Config

type Config struct {
	Key         string `db:"key,pk" bson:"key" comment:"键" json:"key" xml:"key"`
	Label       string `db:"label" bson:"label" comment:"选项名称" json:"label" xml:"label"`
	Description string `db:"description" bson:"description" comment:"简介" json:"description" xml:"description"`
	Value       string `db:"value" bson:"value" comment:"值" json:"value" xml:"value"`
	Group       string `db:"group,pk" bson:"group" comment:"组" json:"group" xml:"group"`
	Type        string `db:"type" bson:"type" comment:"值类型(list-以半角逗号分隔的值列表)" json:"type" xml:"type"`
	Sort        int    `db:"sort" bson:"sort" comment:"排序" json:"sort" xml:"sort"`
	Disabled    string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	Encrypted   string `db:"encrypted" bson:"encrypted" comment:"是否加密" json:"encrypted" xml:"encrypted"`
	// contains filtered or unexported fields
}

Config 配置

func (*Config) Add

func (a *Config) Add() (pk interface{}, err error)

func (*Config) AsKV

func (a *Config) AsKV(keyField string, valueField string, inputRows ...[]*Config) map[string]interface{}

func (*Config) AsMap

func (a *Config) AsMap() map[string]interface{}

func (*Config) AsRow

func (a *Config) AsRow() map[string]interface{}

func (*Config) BatchValidate

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

func (*Config) CPAFrom

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

func (*Config) Context

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

func (*Config) Count

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

func (*Config) Delete

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

func (*Config) Edit

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

func (*Config) EventOFF

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

func (*Config) EventON

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

func (*Config) FromRow

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

func (*Config) Get

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

func (*Config) GroupBy

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

func (*Config) InitObjects

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

func (*Config) KeyBy

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

func (*Config) List

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

func (*Config) ListByOffset

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

func (*Config) Name_

func (a *Config) Name_() string

func (*Config) Namer

func (a *Config) Namer() func(string) string

func (*Config) New

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

func (*Config) NewObjects

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

func (*Config) NewParam

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

func (*Config) Objects

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

func (*Config) Param

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

func (*Config) Reset

func (a *Config) Reset() *Config

func (*Config) Set

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

func (*Config) SetConnID

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

func (*Config) SetContext

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

func (*Config) SetField

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

func (*Config) SetFields

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

func (*Config) SetNamer

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

func (*Config) SetParam

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

func (*Config) Short_

func (a *Config) Short_() string

func (*Config) Struct_

func (a *Config) Struct_() string

func (*Config) Trans

func (a *Config) Trans() *factory.Transaction

func (*Config) Upsert

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

func (*Config) Use

func (a *Config) Use(trans *factory.Transaction) factory.Model

func (*Config) Validate

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

type DbAccount added in v1.3.0

type DbAccount struct {
	Id       uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Title    string `db:"title" bson:"title" comment:"标题" json:"title" xml:"title"`
	Uid      uint   `db:"uid" bson:"uid" comment:"UID" json:"uid" xml:"uid"`
	Engine   string `db:"engine" bson:"engine" comment:"数据库引擎" json:"engine" xml:"engine"`
	Host     string `db:"host" bson:"host" comment:"服务器地址" json:"host" xml:"host"`
	User     string `db:"user" bson:"user" comment:"用户名" json:"user" xml:"user"`
	Password string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Name     string `db:"name" bson:"name" comment:"数据库名称" json:"name" xml:"name"`
	Options  string `db:"options" bson:"options" comment:"其它选项(JSON)" json:"options" xml:"options"`
	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
}

DbAccount 数据库账号

func (*DbAccount) Add added in v1.3.0

func (a *DbAccount) Add() (pk interface{}, err error)

func (*DbAccount) AsKV

func (a *DbAccount) AsKV(keyField string, valueField string, inputRows ...[]*DbAccount) map[string]interface{}

func (*DbAccount) AsMap

func (a *DbAccount) AsMap() map[string]interface{}

func (*DbAccount) AsRow

func (a *DbAccount) AsRow() map[string]interface{}

func (*DbAccount) BatchValidate

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

func (*DbAccount) CPAFrom

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

func (*DbAccount) Context

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

func (*DbAccount) Count added in v1.3.0

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

func (*DbAccount) Delete added in v1.3.0

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

func (*DbAccount) Edit added in v1.3.0

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

func (*DbAccount) EventOFF

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

func (*DbAccount) EventON

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

func (*DbAccount) FromRow

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

func (*DbAccount) Get added in v1.3.0

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

func (*DbAccount) GroupBy

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

func (*DbAccount) InitObjects

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

func (*DbAccount) KeyBy

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

func (*DbAccount) List added in v1.3.0

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

func (*DbAccount) ListByOffset added in v1.3.0

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

func (*DbAccount) Name_

func (a *DbAccount) Name_() string

func (*DbAccount) Namer

func (a *DbAccount) Namer() func(string) string

func (*DbAccount) New

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

func (*DbAccount) NewObjects added in v1.3.0

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

func (*DbAccount) NewParam added in v1.3.0

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

func (*DbAccount) Objects added in v1.3.0

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

func (*DbAccount) Param added in v1.3.0

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

func (*DbAccount) Reset

func (a *DbAccount) Reset() *DbAccount

func (*DbAccount) Set

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

func (*DbAccount) SetConnID

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

func (*DbAccount) SetContext

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

func (*DbAccount) SetField

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

func (*DbAccount) SetFields

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

func (*DbAccount) SetNamer

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

func (*DbAccount) SetParam added in v1.3.0

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

func (*DbAccount) Short_

func (a *DbAccount) Short_() string

func (*DbAccount) Struct_

func (a *DbAccount) Struct_() string

func (*DbAccount) Trans added in v1.3.0

func (a *DbAccount) Trans() *factory.Transaction

func (*DbAccount) Upsert added in v1.3.0

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

func (*DbAccount) Use added in v1.3.0

func (a *DbAccount) Use(trans *factory.Transaction) factory.Model

func (*DbAccount) Validate

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

type DbSync

type DbSync 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"`
	SourceAccountId      uint   `` /* 127-byte string literal not displayed */
	DsnSource            string `db:"dsn_source" bson:"dsn_source" comment:"同步源" json:"dsn_source" xml:"dsn_source"`
	DestinationAccountId uint   `` /* 150-byte string literal not displayed */
	DsnDestination       string `db:"dsn_destination" bson:"dsn_destination" comment:"目标数据库" json:"dsn_destination" xml:"dsn_destination"`
	Tables               string `db:"tables" bson:"tables" comment:"要同步的表" json:"tables" xml:"tables"`
	SkipTables           string `db:"skip_tables" bson:"skip_tables" comment:"要跳过的表" json:"skip_tables" xml:"skip_tables"`
	AlterIgnore          string `db:"alter_ignore" bson:"alter_ignore" comment:"要忽略的列、索引、外键" json:"alter_ignore" xml:"alter_ignore"`
	Drop                 uint   `db:"drop" bson:"drop" comment:"删除待同步数据库中多余的字段、索引、外键 " json:"drop" xml:"drop"`
	MailTo               string `db:"mail_to" bson:"mail_to" comment:"发送邮件" json:"mail_to" xml:"mail_to"`
	Created              uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated              int    `db:"updated" bson:"updated" comment:"更新时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

DbSync 数据表同步方案

func (*DbSync) Add

func (a *DbSync) Add() (pk interface{}, err error)

func (*DbSync) AsKV

func (a *DbSync) AsKV(keyField string, valueField string, inputRows ...[]*DbSync) map[string]interface{}

func (*DbSync) AsMap

func (a *DbSync) AsMap() map[string]interface{}

func (*DbSync) AsRow

func (a *DbSync) AsRow() map[string]interface{}

func (*DbSync) BatchValidate

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

func (*DbSync) CPAFrom

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

func (*DbSync) Context

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

func (*DbSync) Count

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

func (*DbSync) Delete

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

func (*DbSync) Edit

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

func (*DbSync) EventOFF

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

func (*DbSync) EventON

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

func (*DbSync) FromRow

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

func (*DbSync) Get

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

func (*DbSync) GroupBy

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

func (*DbSync) InitObjects

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

func (*DbSync) KeyBy

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

func (*DbSync) List

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

func (*DbSync) ListByOffset

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

func (*DbSync) Name_

func (a *DbSync) Name_() string

func (*DbSync) Namer

func (a *DbSync) Namer() func(string) string

func (*DbSync) New

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

func (*DbSync) NewObjects

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

func (*DbSync) NewParam

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

func (*DbSync) Objects

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

func (*DbSync) Param

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

func (*DbSync) Reset

func (a *DbSync) Reset() *DbSync

func (*DbSync) Set

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

func (*DbSync) SetConnID

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

func (*DbSync) SetContext

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

func (*DbSync) SetField

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

func (*DbSync) SetFields

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

func (*DbSync) SetNamer

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

func (*DbSync) SetParam

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

func (*DbSync) Short_

func (a *DbSync) Short_() string

func (*DbSync) Struct_

func (a *DbSync) Struct_() string

func (*DbSync) Trans

func (a *DbSync) Trans() *factory.Transaction

func (*DbSync) Upsert

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

func (*DbSync) Use

func (a *DbSync) Use(trans *factory.Transaction) factory.Model

func (*DbSync) Validate

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

type DbSyncLog

type DbSyncLog struct {
	Id             uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	SyncId         uint   `db:"sync_id" bson:"sync_id" comment:"同步方案ID" json:"sync_id" xml:"sync_id"`
	Created        uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Result         string `db:"result" bson:"result" comment:"结果报表" json:"result" xml:"result"`
	ChangeTables   string `db:"change_tables" bson:"change_tables" comment:"被更改的表" json:"change_tables" xml:"change_tables"`
	ChangeTableNum uint   `` /* 127-byte string literal not displayed */
	Elapsed        uint64 `db:"elapsed" bson:"elapsed" comment:"总共耗时" json:"elapsed" xml:"elapsed"`
	Failed         uint   `db:"failed" bson:"failed" comment:"失败次数" json:"failed" xml:"failed"`
	// contains filtered or unexported fields
}

DbSyncLog 数据表同步日志

func (*DbSyncLog) Add

func (a *DbSyncLog) Add() (pk interface{}, err error)

func (*DbSyncLog) AsKV

func (a *DbSyncLog) AsKV(keyField string, valueField string, inputRows ...[]*DbSyncLog) map[string]interface{}

func (*DbSyncLog) AsMap

func (a *DbSyncLog) AsMap() map[string]interface{}

func (*DbSyncLog) AsRow

func (a *DbSyncLog) AsRow() map[string]interface{}

func (*DbSyncLog) BatchValidate

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

func (*DbSyncLog) CPAFrom

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

func (*DbSyncLog) Context

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

func (*DbSyncLog) Count

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

func (*DbSyncLog) Delete

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

func (*DbSyncLog) Edit

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

func (*DbSyncLog) EventOFF

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

func (*DbSyncLog) EventON

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

func (*DbSyncLog) FromRow

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

func (*DbSyncLog) Get

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

func (*DbSyncLog) GroupBy

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

func (*DbSyncLog) InitObjects

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

func (*DbSyncLog) KeyBy

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

func (*DbSyncLog) List

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

func (*DbSyncLog) ListByOffset

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

func (*DbSyncLog) Name_

func (a *DbSyncLog) Name_() string

func (*DbSyncLog) Namer

func (a *DbSyncLog) Namer() func(string) string

func (*DbSyncLog) New

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

func (*DbSyncLog) NewObjects

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

func (*DbSyncLog) NewParam

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

func (*DbSyncLog) Objects

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

func (*DbSyncLog) Param

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

func (*DbSyncLog) Reset

func (a *DbSyncLog) Reset() *DbSyncLog

func (*DbSyncLog) Set

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

func (*DbSyncLog) SetConnID

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

func (*DbSyncLog) SetContext

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

func (*DbSyncLog) SetField

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

func (*DbSyncLog) SetFields

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

func (*DbSyncLog) SetNamer

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

func (*DbSyncLog) SetParam

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

func (*DbSyncLog) Short_

func (a *DbSyncLog) Short_() string

func (*DbSyncLog) Struct_

func (a *DbSyncLog) Struct_() string

func (*DbSyncLog) Trans

func (a *DbSyncLog) Trans() *factory.Transaction

func (*DbSyncLog) Upsert

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

func (*DbSyncLog) Use

func (a *DbSyncLog) Use(trans *factory.Transaction) factory.Model

func (*DbSyncLog) Validate

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

type File

type File struct {
	Id         uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"文件ID" json:"id" xml:"id"`
	OwnerType  string `db:"owner_type" bson:"owner_type" comment:"用户类型" json:"owner_type" xml:"owner_type"`
	OwnerId    uint64 `db:"owner_id" bson:"owner_id" comment:"用户ID" json:"owner_id" xml:"owner_id"`
	Name       string `db:"name" bson:"name" comment:"原始文件名" json:"name" xml:"name"`
	SaveName   string `db:"save_name" bson:"save_name" comment:"保存名称" json:"save_name" xml:"save_name"`
	SavePath   string `db:"save_path" bson:"save_path" comment:"文件保存路径" json:"save_path" xml:"save_path"`
	ViewUrl    string `db:"view_url" bson:"view_url" comment:"查看链接" json:"view_url" xml:"view_url"`
	Ext        string `db:"ext" bson:"ext" comment:"文件后缀" json:"ext" xml:"ext"`
	Mime       string `db:"mime" bson:"mime" comment:"文件mime类型" json:"mime" xml:"mime"`
	Type       string `db:"type" bson:"type" comment:"文件类型" json:"type" xml:"type"`
	Size       uint64 `db:"size" bson:"size" comment:"文件大小" json:"size" xml:"size"`
	Width      uint   `db:"width" bson:"width" comment:"宽度(像素)" json:"width" xml:"width"`
	Height     uint   `db:"height" bson:"height" comment:"高度(像素)" json:"height" xml:"height"`
	Dpi        uint   `db:"dpi" bson:"dpi" comment:"分辨率" json:"dpi" xml:"dpi"`
	Md5        string `db:"md5" bson:"md5" comment:"文件md5" json:"md5" xml:"md5"`
	StorerName string `db:"storer_name" bson:"storer_name" comment:"文件保存位置" json:"storer_name" xml:"storer_name"`
	StorerId   string `db:"storer_id" bson:"storer_id" comment:"位置ID" json:"storer_id" xml:"storer_id"`
	Created    uint   `db:"created" bson:"created" comment:"上传时间" json:"created" xml:"created"`
	Updated    uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	Project    string `db:"project" bson:"project" comment:"项目名称" json:"project" xml:"project"`
	TableId    string `db:"table_id" bson:"table_id" comment:"关联表数据id" json:"table_id" xml:"table_id"`
	TableName  string `db:"table_name" bson:"table_name" comment:"关联表名称" json:"table_name" xml:"table_name"`
	FieldName  string `db:"field_name" bson:"field_name" comment:"关联表字段名" json:"field_name" xml:"field_name"`
	Sort       int64  `db:"sort" bson:"sort" comment:"排序" json:"sort" xml:"sort"`
	Status     int    `db:"status" bson:"status" comment:"状态(1-已审核/0-未审核)" json:"status" xml:"status"`
	CategoryId uint   `db:"category_id" bson:"category_id" comment:"分类ID" json:"category_id" xml:"category_id"`
	UsedTimes  uint   `db:"used_times" bson:"used_times" comment:"被使用的次数" json:"used_times" xml:"used_times"`
	// contains filtered or unexported fields
}

File 文件表

func (*File) Add

func (a *File) Add() (pk interface{}, err error)

func (*File) AsKV

func (a *File) AsKV(keyField string, valueField string, inputRows ...[]*File) map[string]interface{}

func (*File) AsMap

func (a *File) AsMap() map[string]interface{}

func (*File) AsRow

func (a *File) AsRow() map[string]interface{}

func (*File) BatchValidate

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

func (*File) CPAFrom

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

func (*File) Context

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

func (*File) Count

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

func (*File) Delete

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

func (*File) Edit

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

func (*File) EventOFF

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

func (*File) EventON

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

func (*File) FromRow

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

func (*File) Get

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

func (*File) GroupBy

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

func (*File) InitObjects

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

func (*File) KeyBy

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

func (*File) List

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

func (*File) ListByOffset

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

func (*File) Name_

func (a *File) Name_() string

func (*File) Namer

func (a *File) Namer() func(string) string

func (*File) New

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

func (*File) NewObjects

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

func (*File) NewParam

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

func (*File) Objects

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

func (*File) Param

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

func (*File) Reset

func (a *File) Reset() *File

func (*File) Set

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

func (*File) SetConnID

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

func (*File) SetContext

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

func (*File) SetField

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

func (*File) SetFields

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

func (*File) SetNamer

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

func (*File) SetParam

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

func (*File) Short_

func (a *File) Short_() string

func (*File) Struct_

func (a *File) Struct_() string

func (*File) Trans

func (a *File) Trans() *factory.Transaction

func (*File) Upsert

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

func (*File) Use

func (a *File) Use(trans *factory.Transaction) factory.Model

func (*File) Validate

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

type FileEmbedded

type FileEmbedded struct {
	Id        uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"主键" json:"id" xml:"id"`
	Project   string `db:"project" bson:"project" comment:"项目名" json:"project" xml:"project"`
	TableId   string `db:"table_id" bson:"table_id" comment:"表主键" json:"table_id" xml:"table_id"`
	TableName string `db:"table_name" bson:"table_name" comment:"表名称" json:"table_name" xml:"table_name"`
	FieldName string `db:"field_name" bson:"field_name" comment:"字段名" json:"field_name" xml:"field_name"`
	FileIds   string `db:"file_ids" bson:"file_ids" comment:"文件id列表" json:"file_ids" xml:"file_ids"`
	Embedded  string `db:"embedded" bson:"embedded" comment:"是否(Y/N)为内嵌文件" json:"embedded" xml:"embedded"`
	// contains filtered or unexported fields
}

FileEmbedded 嵌入文件

func (*FileEmbedded) Add

func (a *FileEmbedded) Add() (pk interface{}, err error)

func (*FileEmbedded) AsKV

func (a *FileEmbedded) AsKV(keyField string, valueField string, inputRows ...[]*FileEmbedded) map[string]interface{}

func (*FileEmbedded) AsMap

func (a *FileEmbedded) AsMap() map[string]interface{}

func (*FileEmbedded) AsRow

func (a *FileEmbedded) AsRow() map[string]interface{}

func (*FileEmbedded) BatchValidate

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

func (*FileEmbedded) CPAFrom

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

func (*FileEmbedded) Context

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

func (*FileEmbedded) Count

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

func (*FileEmbedded) Delete

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

func (*FileEmbedded) Edit

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

func (*FileEmbedded) EventOFF

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

func (*FileEmbedded) EventON

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

func (*FileEmbedded) FromRow

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

func (*FileEmbedded) Get

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

func (*FileEmbedded) GroupBy

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

func (*FileEmbedded) InitObjects

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

func (*FileEmbedded) KeyBy

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

func (*FileEmbedded) List

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

func (*FileEmbedded) ListByOffset

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

func (*FileEmbedded) Name_

func (a *FileEmbedded) Name_() string

func (*FileEmbedded) Namer

func (a *FileEmbedded) Namer() func(string) string

func (*FileEmbedded) New

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

func (*FileEmbedded) NewObjects

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

func (*FileEmbedded) NewParam

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

func (*FileEmbedded) Objects

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

func (*FileEmbedded) Param

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

func (*FileEmbedded) Reset

func (a *FileEmbedded) Reset() *FileEmbedded

func (*FileEmbedded) Set

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

func (*FileEmbedded) SetConnID

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

func (*FileEmbedded) SetContext

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

func (*FileEmbedded) SetField

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

func (*FileEmbedded) SetFields

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

func (*FileEmbedded) SetNamer

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

func (*FileEmbedded) SetParam

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

func (*FileEmbedded) Short_

func (a *FileEmbedded) Short_() string

func (*FileEmbedded) Struct_

func (a *FileEmbedded) Struct_() string

func (*FileEmbedded) Trans

func (a *FileEmbedded) Trans() *factory.Transaction

func (*FileEmbedded) Upsert

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

func (*FileEmbedded) Use

func (a *FileEmbedded) Use(trans *factory.Transaction) factory.Model

func (*FileEmbedded) Validate

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

type FileThumb

type FileThumb struct {
	Id        uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"主键" json:"id" xml:"id"`
	FileId    uint64 `db:"file_id" bson:"file_id" comment:"文件ID" json:"file_id" xml:"file_id"`
	Size      uint64 `db:"size" bson:"size" comment:"文件大小" json:"size" xml:"size"`
	Width     uint   `db:"width" bson:"width" comment:"宽度(像素)" json:"width" xml:"width"`
	Height    uint   `db:"height" bson:"height" comment:"高度(像素)" json:"height" xml:"height"`
	Dpi       uint   `db:"dpi" bson:"dpi" comment:"分辨率" json:"dpi" xml:"dpi"`
	SaveName  string `db:"save_name" bson:"save_name" comment:"保存名称" json:"save_name" xml:"save_name"`
	SavePath  string `db:"save_path" bson:"save_path" comment:"保存路径" json:"save_path" xml:"save_path"`
	ViewUrl   string `db:"view_url" bson:"view_url" comment:"访问网址" json:"view_url" xml:"view_url"`
	UsedTimes uint   `db:"used_times" bson:"used_times" comment:"被使用的次数" json:"used_times" xml:"used_times"`
	Md5       string `db:"md5" bson:"md5" comment:"缩略图文件MD5值" json:"md5" xml:"md5"`
	// contains filtered or unexported fields
}

FileThumb 图片文件缩略图

func (*FileThumb) Add

func (a *FileThumb) Add() (pk interface{}, err error)

func (*FileThumb) AsKV

func (a *FileThumb) AsKV(keyField string, valueField string, inputRows ...[]*FileThumb) map[string]interface{}

func (*FileThumb) AsMap

func (a *FileThumb) AsMap() map[string]interface{}

func (*FileThumb) AsRow

func (a *FileThumb) AsRow() map[string]interface{}

func (*FileThumb) BatchValidate

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

func (*FileThumb) CPAFrom

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

func (*FileThumb) Context

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

func (*FileThumb) Count

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

func (*FileThumb) Delete

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

func (*FileThumb) Edit

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

func (*FileThumb) EventOFF

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

func (*FileThumb) EventON

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

func (*FileThumb) FromRow

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

func (*FileThumb) Get

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

func (*FileThumb) GroupBy

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

func (*FileThumb) InitObjects

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

func (*FileThumb) KeyBy

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

func (*FileThumb) List

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

func (*FileThumb) ListByOffset

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

func (*FileThumb) Name_

func (a *FileThumb) Name_() string

func (*FileThumb) Namer

func (a *FileThumb) Namer() func(string) string

func (*FileThumb) New

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

func (*FileThumb) NewObjects

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

func (*FileThumb) NewParam

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

func (*FileThumb) Objects

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

func (*FileThumb) Param

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

func (*FileThumb) Reset

func (a *FileThumb) Reset() *FileThumb

func (*FileThumb) Set

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

func (*FileThumb) SetConnID

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

func (*FileThumb) SetContext

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

func (*FileThumb) SetField

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

func (*FileThumb) SetFields

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

func (*FileThumb) SetNamer

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

func (*FileThumb) SetParam

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

func (*FileThumb) Short_

func (a *FileThumb) Short_() string

func (*FileThumb) Struct_

func (a *FileThumb) Struct_() string

func (*FileThumb) Trans

func (a *FileThumb) Trans() *factory.Transaction

func (*FileThumb) Upsert

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

func (*FileThumb) Use

func (a *FileThumb) Use(trans *factory.Transaction) factory.Model

func (*FileThumb) Validate

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

type ForeverProcess

type ForeverProcess struct {
	Id           uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" 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"`
	Command      string `db:"command" bson:"command" comment:"命令" json:"command" xml:"command"`
	Workdir      string `db:"workdir" bson:"workdir" comment:"工作目录" json:"workdir" xml:"workdir"`
	Env          string `db:"env" bson:"env" comment:"环境变量" json:"env" xml:"env"`
	Args         string `db:"args" bson:"args" comment:"命令参数" json:"args" xml:"args"`
	Pidfile      string `db:"pidfile" bson:"pidfile" comment:"PID记录文件" json:"pidfile" xml:"pidfile"`
	Logfile      string `db:"logfile" bson:"logfile" comment:"日志记录文件" json:"logfile" xml:"logfile"`
	Errfile      string `db:"errfile" bson:"errfile" comment:"错误记录文件" json:"errfile" xml:"errfile"`
	Respawn      uint   `db:"respawn" bson:"respawn" comment:"重试次数(进程被外部程序结束后自动启动)" json:"respawn" xml:"respawn"`
	Delay        string `db:"delay" bson:"delay" comment:"延迟启动(例如1ms/1s/1m/1h)" json:"delay" xml:"delay"`
	Ping         string `db:"ping" bson:"ping" comment:"心跳时间(例如1ms/1s/1m/1h)" json:"ping" xml:"ping"`
	Pid          int    `db:"pid" bson:"pid" comment:"PID" json:"pid" xml:"pid"`
	Status       string `db:"status" bson:"status" comment:"进程运行状态" json:"status" xml:"status"`
	Debug        string `db:"debug" bson:"debug" comment:"DEBUG" json:"debug" xml:"debug"`
	Disabled     string `db:"disabled" bson:"disabled" comment:"是否禁用" 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"`
	Error        string `db:"error" bson:"error" comment:"错误信息" json:"error" xml:"error"`
	Lastrun      uint   `db:"lastrun" bson:"lastrun" comment:"上次运行时间" json:"lastrun" xml:"lastrun"`
	Description  string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	EnableNotify uint   `db:"enable_notify" bson:"enable_notify" comment:"是否启用通知" json:"enable_notify" xml:"enable_notify"`
	NotifyEmail  string `db:"notify_email" bson:"notify_email" comment:"通知人列表" json:"notify_email" xml:"notify_email"`
	// contains filtered or unexported fields
}

ForeverProcess 持久进程

func (*ForeverProcess) Add

func (a *ForeverProcess) Add() (pk interface{}, err error)

func (*ForeverProcess) AsKV

func (a *ForeverProcess) AsKV(keyField string, valueField string, inputRows ...[]*ForeverProcess) map[string]interface{}

func (*ForeverProcess) AsMap

func (a *ForeverProcess) AsMap() map[string]interface{}

func (*ForeverProcess) AsRow

func (a *ForeverProcess) AsRow() map[string]interface{}

func (*ForeverProcess) BatchValidate

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

func (*ForeverProcess) CPAFrom

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

func (*ForeverProcess) Context

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

func (*ForeverProcess) Count

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

func (*ForeverProcess) Delete

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

func (*ForeverProcess) Edit

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

func (*ForeverProcess) EventOFF

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

func (*ForeverProcess) EventON

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

func (*ForeverProcess) FromRow

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

func (*ForeverProcess) Get

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

func (*ForeverProcess) GroupBy

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

func (*ForeverProcess) InitObjects

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

func (*ForeverProcess) KeyBy

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

func (*ForeverProcess) List

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

func (*ForeverProcess) ListByOffset

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

func (*ForeverProcess) Name_

func (a *ForeverProcess) Name_() string

func (*ForeverProcess) Namer

func (a *ForeverProcess) Namer() func(string) string

func (*ForeverProcess) New

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

func (*ForeverProcess) NewObjects

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

func (*ForeverProcess) NewParam

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

func (*ForeverProcess) Objects

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

func (*ForeverProcess) Param

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

func (*ForeverProcess) Reset

func (a *ForeverProcess) Reset() *ForeverProcess

func (*ForeverProcess) Set

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

func (*ForeverProcess) SetConnID

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

func (*ForeverProcess) SetContext

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

func (*ForeverProcess) SetField

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

func (*ForeverProcess) SetFields

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

func (*ForeverProcess) SetNamer

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

func (*ForeverProcess) SetParam

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

func (*ForeverProcess) Short_

func (a *ForeverProcess) Short_() string

func (*ForeverProcess) Struct_

func (a *ForeverProcess) Struct_() string

func (*ForeverProcess) Trans

func (a *ForeverProcess) Trans() *factory.Transaction

func (*ForeverProcess) Upsert

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

func (*ForeverProcess) Use

func (*ForeverProcess) Validate

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

type FrpClient

type FrpClient 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"`
	Disabled          string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	ServerAddr        string `db:"server_addr" bson:"server_addr" comment:"" json:"server_addr" xml:"server_addr"`
	ServerPort        uint   `db:"server_port" bson:"server_port" comment:"" json:"server_port" xml:"server_port"`
	HttpProxy         string `db:"http_proxy" bson:"http_proxy" comment:"" json:"http_proxy" xml:"http_proxy"`
	PoolCount         uint   `db:"pool_count" bson:"pool_count" comment:"" json:"pool_count" xml:"pool_count"`
	TcpMux            string `db:"tcp_mux" bson:"tcp_mux" comment:"必须跟服务端一致" json:"tcp_mux" xml:"tcp_mux"`
	User              string `db:"user" bson:"user" comment:"" json:"user" xml:"user"`
	DnsServer         string `db:"dns_server" bson:"dns_server" comment:"" json:"dns_server" xml:"dns_server"`
	LoginFailExit     string `db:"login_fail_exit" bson:"login_fail_exit" comment:"" json:"login_fail_exit" xml:"login_fail_exit"`
	Protocol          string `db:"protocol" bson:"protocol" comment:"tcp or kcp" json:"protocol" xml:"protocol"`
	HeartbeatInterval int64  `db:"heartbeat_interval" bson:"heartbeat_interval" comment:"" json:"heartbeat_interval" xml:"heartbeat_interval"`
	HeartbeatTimeout  int64  `db:"heartbeat_timeout" bson:"heartbeat_timeout" comment:"" json:"heartbeat_timeout" xml:"heartbeat_timeout"`
	LogFile           string `db:"log_file" bson:"log_file" comment:"" json:"log_file" xml:"log_file"`
	LogWay            string `db:"log_way" bson:"log_way" comment:"console or file" json:"log_way" xml:"log_way"`
	LogLevel          string `db:"log_level" bson:"log_level" comment:"" json:"log_level" xml:"log_level"`
	LogMaxDays        uint   `db:"log_max_days" bson:"log_max_days" comment:"" json:"log_max_days" xml:"log_max_days"`
	Token             string `db:"token" bson:"token" comment:"" json:"token" xml:"token"`
	AdminAddr         string `db:"admin_addr" bson:"admin_addr" comment:"" json:"admin_addr" xml:"admin_addr"`
	AdminPort         uint   `db:"admin_port" bson:"admin_port" comment:"" json:"admin_port" xml:"admin_port"`
	AdminUser         string `db:"admin_user" bson:"admin_user" comment:"" json:"admin_user" xml:"admin_user"`
	AdminPwd          string `db:"admin_pwd" bson:"admin_pwd" comment:"" json:"admin_pwd" xml:"admin_pwd"`
	Start             string `` /* 140-byte string literal not displayed */
	Extra             string `db:"extra" bson:"extra" comment:"" json:"extra" xml:"extra"`
	Uid               uint   `db:"uid" bson:"uid" comment:"" json:"uid" xml:"uid"`
	GroupId           uint   `db:"group_id" bson:"group_id" comment:"" json:"group_id" xml:"group_id"`
	Type              string `db:"type" bson:"type" comment:"" json:"type" xml:"type"`
	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
}

FrpClient FRP客户端设置

func (*FrpClient) Add

func (a *FrpClient) Add() (pk interface{}, err error)

func (*FrpClient) AsKV

func (a *FrpClient) AsKV(keyField string, valueField string, inputRows ...[]*FrpClient) map[string]interface{}

func (*FrpClient) AsMap

func (a *FrpClient) AsMap() map[string]interface{}

func (*FrpClient) AsRow

func (a *FrpClient) AsRow() map[string]interface{}

func (*FrpClient) BatchValidate

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

func (*FrpClient) CPAFrom

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

func (*FrpClient) Context

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

func (*FrpClient) Count

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

func (*FrpClient) Delete

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

func (*FrpClient) Edit

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

func (*FrpClient) EventOFF

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

func (*FrpClient) EventON

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

func (*FrpClient) FromRow

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

func (*FrpClient) Get

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

func (*FrpClient) GroupBy

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

func (*FrpClient) InitObjects

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

func (*FrpClient) KeyBy

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

func (*FrpClient) List

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

func (*FrpClient) ListByOffset

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

func (*FrpClient) Name_

func (a *FrpClient) Name_() string

func (*FrpClient) Namer

func (a *FrpClient) Namer() func(string) string

func (*FrpClient) New

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

func (*FrpClient) NewObjects

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

func (*FrpClient) NewParam

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

func (*FrpClient) Objects

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

func (*FrpClient) Param

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

func (*FrpClient) Reset

func (a *FrpClient) Reset() *FrpClient

func (*FrpClient) Set

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

func (*FrpClient) SetConnID

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

func (*FrpClient) SetContext

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

func (*FrpClient) SetField

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

func (*FrpClient) SetFields

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

func (*FrpClient) SetNamer

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

func (*FrpClient) SetParam

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

func (*FrpClient) Short_

func (a *FrpClient) Short_() string

func (*FrpClient) Struct_

func (a *FrpClient) Struct_() string

func (*FrpClient) Trans

func (a *FrpClient) Trans() *factory.Transaction

func (*FrpClient) Upsert

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

func (*FrpClient) Use

func (a *FrpClient) Use(trans *factory.Transaction) factory.Model

func (*FrpClient) Validate

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

type FrpGroup

type FrpGroup 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"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

FrpGroup FRP服务组

func (*FrpGroup) Add

func (a *FrpGroup) Add() (pk interface{}, err error)

func (*FrpGroup) AsKV

func (a *FrpGroup) AsKV(keyField string, valueField string, inputRows ...[]*FrpGroup) map[string]interface{}

func (*FrpGroup) AsMap

func (a *FrpGroup) AsMap() map[string]interface{}

func (*FrpGroup) AsRow

func (a *FrpGroup) AsRow() map[string]interface{}

func (*FrpGroup) BatchValidate

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

func (*FrpGroup) CPAFrom

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

func (*FrpGroup) Context

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

func (*FrpGroup) Count

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

func (*FrpGroup) Delete

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

func (*FrpGroup) Edit

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

func (*FrpGroup) EventOFF

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

func (*FrpGroup) EventON

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

func (*FrpGroup) FromRow

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

func (*FrpGroup) Get

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

func (*FrpGroup) GroupBy

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

func (*FrpGroup) InitObjects

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

func (*FrpGroup) KeyBy

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

func (*FrpGroup) List

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

func (*FrpGroup) ListByOffset

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

func (*FrpGroup) Name_

func (a *FrpGroup) Name_() string

func (*FrpGroup) Namer

func (a *FrpGroup) Namer() func(string) string

func (*FrpGroup) New

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

func (*FrpGroup) NewObjects

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

func (*FrpGroup) NewParam

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

func (*FrpGroup) Objects

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

func (*FrpGroup) Param

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

func (*FrpGroup) Reset

func (a *FrpGroup) Reset() *FrpGroup

func (*FrpGroup) Set

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

func (*FrpGroup) SetConnID

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

func (*FrpGroup) SetContext

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

func (*FrpGroup) SetField

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

func (*FrpGroup) SetFields

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

func (*FrpGroup) SetNamer

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

func (*FrpGroup) SetParam

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

func (*FrpGroup) Short_

func (a *FrpGroup) Short_() string

func (*FrpGroup) Struct_

func (a *FrpGroup) Struct_() string

func (*FrpGroup) Trans

func (a *FrpGroup) Trans() *factory.Transaction

func (*FrpGroup) Upsert

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

func (*FrpGroup) Use

func (a *FrpGroup) Use(trans *factory.Transaction) factory.Model

func (*FrpGroup) Validate

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

type FrpServer

type FrpServer 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"`
	Disabled          string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	TcpMux            string `db:"tcp_mux" bson:"tcp_mux" comment:"" json:"tcp_mux" xml:"tcp_mux"`
	Addr              string `db:"addr" bson:"addr" comment:"" json:"addr" xml:"addr"`
	Port              uint   `db:"port" bson:"port" comment:"" json:"port" xml:"port"`
	UdpPort           uint   `db:"udp_port" bson:"udp_port" comment:"" json:"udp_port" xml:"udp_port"`
	KcpPort           uint   `db:"kcp_port" bson:"kcp_port" comment:"" json:"kcp_port" xml:"kcp_port"`
	ProxyAddr         string `db:"proxy_addr" bson:"proxy_addr" comment:"" json:"proxy_addr" xml:"proxy_addr"`
	VhostHttpPort     uint   `db:"vhost_http_port" bson:"vhost_http_port" comment:"" json:"vhost_http_port" xml:"vhost_http_port"`
	VhostHttpTimeout  uint64 `db:"vhost_http_timeout" bson:"vhost_http_timeout" comment:"" json:"vhost_http_timeout" xml:"vhost_http_timeout"`
	VhostHttpsPort    uint   `db:"vhost_https_port" bson:"vhost_https_port" comment:"" json:"vhost_https_port" xml:"vhost_https_port"`
	LogFile           string `db:"log_file" bson:"log_file" comment:"" json:"log_file" xml:"log_file"`
	LogWay            string `db:"log_way" bson:"log_way" comment:"console or file" json:"log_way" xml:"log_way"`
	LogLevel          string `db:"log_level" bson:"log_level" comment:"" json:"log_level" xml:"log_level"`
	LogMaxDays        uint   `db:"log_max_days" bson:"log_max_days" comment:"" json:"log_max_days" xml:"log_max_days"`
	Token             string `db:"token" bson:"token" comment:"" json:"token" xml:"token"`
	AuthTimeout       uint64 `db:"auth_timeout" bson:"auth_timeout" comment:"" json:"auth_timeout" xml:"auth_timeout"`
	SubdomainHost     string `db:"subdomain_host" bson:"subdomain_host" comment:"" json:"subdomain_host" xml:"subdomain_host"`
	MaxPortsPerClient int64  `db:"max_ports_per_client" bson:"max_ports_per_client" comment:"" json:"max_ports_per_client" xml:"max_ports_per_client"`
	MaxPoolCount      uint   `db:"max_pool_count" bson:"max_pool_count" comment:"" json:"max_pool_count" xml:"max_pool_count"`
	HeartBeatTimeout  uint   `db:"heart_beat_timeout" bson:"heart_beat_timeout" comment:"" json:"heart_beat_timeout" xml:"heart_beat_timeout"`
	UserConnTimeout   uint   `db:"user_conn_timeout" bson:"user_conn_timeout" comment:"" json:"user_conn_timeout" xml:"user_conn_timeout"`
	DashboardAddr     string `db:"dashboard_addr" bson:"dashboard_addr" comment:"" json:"dashboard_addr" xml:"dashboard_addr"`
	DashboardPort     uint   `db:"dashboard_port" bson:"dashboard_port" comment:"" json:"dashboard_port" xml:"dashboard_port"`
	DashboardUser     string `db:"dashboard_user" bson:"dashboard_user" comment:"" json:"dashboard_user" xml:"dashboard_user"`
	DashboardPwd      string `db:"dashboard_pwd" bson:"dashboard_pwd" comment:"" json:"dashboard_pwd" xml:"dashboard_pwd"`
	AllowPorts        string `db:"allow_ports" bson:"allow_ports" comment:"" json:"allow_ports" xml:"allow_ports"`
	Extra             string `db:"extra" bson:"extra" comment:"" json:"extra" xml:"extra"`
	Uid               uint   `db:"uid" bson:"uid" comment:"" json:"uid" xml:"uid"`
	GroupId           uint   `db:"group_id" bson:"group_id" comment:"" json:"group_id" xml:"group_id"`
	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
}

FrpServer FRP服务器设置

func (*FrpServer) Add

func (a *FrpServer) Add() (pk interface{}, err error)

func (*FrpServer) AsKV

func (a *FrpServer) AsKV(keyField string, valueField string, inputRows ...[]*FrpServer) map[string]interface{}

func (*FrpServer) AsMap

func (a *FrpServer) AsMap() map[string]interface{}

func (*FrpServer) AsRow

func (a *FrpServer) AsRow() map[string]interface{}

func (*FrpServer) BatchValidate

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

func (*FrpServer) CPAFrom

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

func (*FrpServer) Context

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

func (*FrpServer) Count

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

func (*FrpServer) Delete

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

func (*FrpServer) Edit

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

func (*FrpServer) EventOFF

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

func (*FrpServer) EventON

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

func (*FrpServer) FromRow

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

func (*FrpServer) Get

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

func (*FrpServer) GroupBy

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

func (*FrpServer) InitObjects

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

func (*FrpServer) KeyBy

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

func (*FrpServer) List

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

func (*FrpServer) ListByOffset

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

func (*FrpServer) Name_

func (a *FrpServer) Name_() string

func (*FrpServer) Namer

func (a *FrpServer) Namer() func(string) string

func (*FrpServer) New

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

func (*FrpServer) NewObjects

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

func (*FrpServer) NewParam

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

func (*FrpServer) Objects

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

func (*FrpServer) Param

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

func (*FrpServer) Reset

func (a *FrpServer) Reset() *FrpServer

func (*FrpServer) Set

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

func (*FrpServer) SetConnID

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

func (*FrpServer) SetContext

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

func (*FrpServer) SetField

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

func (*FrpServer) SetFields

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

func (*FrpServer) SetNamer

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

func (*FrpServer) SetParam

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

func (*FrpServer) Short_

func (a *FrpServer) Short_() string

func (*FrpServer) Struct_

func (a *FrpServer) Struct_() string

func (*FrpServer) Trans

func (a *FrpServer) Trans() *factory.Transaction

func (*FrpServer) Upsert

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

func (*FrpServer) Use

func (a *FrpServer) Use(trans *factory.Transaction) factory.Model

func (*FrpServer) Validate

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

type FtpUser

type FtpUser struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Username    string `db:"username" bson:"username" comment:"用户名" json:"username" xml:"username"`
	Password    string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Banned      string `db:"banned" bson:"banned" comment:"是否禁止连接" json:"banned" xml:"banned"`
	Directory   string `db:"directory" bson:"directory" comment:"授权目录(一行一个) " json:"directory" xml:"directory"`
	IpWhitelist string `db:"ip_whitelist" bson:"ip_whitelist" comment:"IP白名单(一行一个) " json:"ip_whitelist" xml:"ip_whitelist"`
	IpBlacklist string `db:"ip_blacklist" bson:"ip_blacklist" comment:"IP黑名单(一行一个) " json:"ip_blacklist" xml:"ip_blacklist"`
	Created     uint   `db:"created" bson:"created" comment:"创建时间 " json:"created" xml:"created"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	GroupId     uint   `db:"group_id" bson:"group_id" comment:"用户组" json:"group_id" xml:"group_id"`
	// contains filtered or unexported fields
}

FtpUser FTP用户

func (*FtpUser) Add

func (a *FtpUser) Add() (pk interface{}, err error)

func (*FtpUser) AsKV

func (a *FtpUser) AsKV(keyField string, valueField string, inputRows ...[]*FtpUser) map[string]interface{}

func (*FtpUser) AsMap

func (a *FtpUser) AsMap() map[string]interface{}

func (*FtpUser) AsRow

func (a *FtpUser) AsRow() map[string]interface{}

func (*FtpUser) BatchValidate

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

func (*FtpUser) CPAFrom

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

func (*FtpUser) Context

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

func (*FtpUser) Count

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

func (*FtpUser) Delete

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

func (*FtpUser) Edit

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

func (*FtpUser) EventOFF

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

func (*FtpUser) EventON

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

func (*FtpUser) FromRow

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

func (*FtpUser) Get

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

func (*FtpUser) GroupBy

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

func (*FtpUser) InitObjects

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

func (*FtpUser) KeyBy

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

func (*FtpUser) List

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

func (*FtpUser) ListByOffset

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

func (*FtpUser) Name_

func (a *FtpUser) Name_() string

func (*FtpUser) Namer

func (a *FtpUser) Namer() func(string) string

func (*FtpUser) New

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

func (*FtpUser) NewObjects

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

func (*FtpUser) NewParam

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

func (*FtpUser) Objects

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

func (*FtpUser) Param

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

func (*FtpUser) Reset

func (a *FtpUser) Reset() *FtpUser

func (*FtpUser) Set

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

func (*FtpUser) SetConnID

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

func (*FtpUser) SetContext

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

func (*FtpUser) SetField

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

func (*FtpUser) SetFields

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

func (*FtpUser) SetNamer

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

func (*FtpUser) SetParam

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

func (*FtpUser) Short_

func (a *FtpUser) Short_() string

func (*FtpUser) Struct_

func (a *FtpUser) Struct_() string

func (*FtpUser) Trans

func (a *FtpUser) Trans() *factory.Transaction

func (*FtpUser) Upsert

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

func (*FtpUser) Use

func (a *FtpUser) Use(trans *factory.Transaction) factory.Model

func (*FtpUser) Validate

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

type FtpUserGroup

type FtpUserGroup struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Name        string `db:"name" bson:"name" comment:"组名称" json:"name" xml:"name"`
	Created     uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	Disabled    string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	Banned      string `db:"banned" bson:"banned" comment:"是否禁止组内用户连接" json:"banned" xml:"banned"`
	Directory   string `db:"directory" bson:"directory" comment:"授权目录" json:"directory" xml:"directory"`
	IpWhitelist string `db:"ip_whitelist" bson:"ip_whitelist" comment:"IP白名单(一行一个)" json:"ip_whitelist" xml:"ip_whitelist"`
	IpBlacklist string `db:"ip_blacklist" bson:"ip_blacklist" comment:"IP黑名单(一行一个)" json:"ip_blacklist" xml:"ip_blacklist"`
	// contains filtered or unexported fields
}

FtpUserGroup FTP用户组

func (*FtpUserGroup) Add

func (a *FtpUserGroup) Add() (pk interface{}, err error)

func (*FtpUserGroup) AsKV

func (a *FtpUserGroup) AsKV(keyField string, valueField string, inputRows ...[]*FtpUserGroup) map[string]interface{}

func (*FtpUserGroup) AsMap

func (a *FtpUserGroup) AsMap() map[string]interface{}

func (*FtpUserGroup) AsRow

func (a *FtpUserGroup) AsRow() map[string]interface{}

func (*FtpUserGroup) BatchValidate

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

func (*FtpUserGroup) CPAFrom

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

func (*FtpUserGroup) Context

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

func (*FtpUserGroup) Count

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

func (*FtpUserGroup) Delete

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

func (*FtpUserGroup) Edit

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

func (*FtpUserGroup) EventOFF

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

func (*FtpUserGroup) EventON

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

func (*FtpUserGroup) FromRow

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

func (*FtpUserGroup) Get

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

func (*FtpUserGroup) GroupBy

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

func (*FtpUserGroup) InitObjects

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

func (*FtpUserGroup) KeyBy

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

func (*FtpUserGroup) List

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

func (*FtpUserGroup) ListByOffset

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

func (*FtpUserGroup) Name_

func (a *FtpUserGroup) Name_() string

func (*FtpUserGroup) Namer

func (a *FtpUserGroup) Namer() func(string) string

func (*FtpUserGroup) New

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

func (*FtpUserGroup) NewObjects

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

func (*FtpUserGroup) NewParam

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

func (*FtpUserGroup) Objects

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

func (*FtpUserGroup) Param

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

func (*FtpUserGroup) Reset

func (a *FtpUserGroup) Reset() *FtpUserGroup

func (*FtpUserGroup) Set

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

func (*FtpUserGroup) SetConnID

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

func (*FtpUserGroup) SetContext

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

func (*FtpUserGroup) SetField

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

func (*FtpUserGroup) SetFields

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

func (*FtpUserGroup) SetNamer

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

func (*FtpUserGroup) SetParam

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

func (*FtpUserGroup) Short_

func (a *FtpUserGroup) Short_() string

func (*FtpUserGroup) Struct_

func (a *FtpUserGroup) Struct_() string

func (*FtpUserGroup) Trans

func (a *FtpUserGroup) Trans() *factory.Transaction

func (*FtpUserGroup) Upsert

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

func (*FtpUserGroup) Use

func (a *FtpUserGroup) Use(trans *factory.Transaction) factory.Model

func (*FtpUserGroup) Validate

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

type SendingLog

type SendingLog struct {
	Id              uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Created         uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	SentAt          uint   `db:"sent_at" bson:"sent_at" comment:"发送时间" json:"sent_at" xml:"sent_at"`
	SourceId        uint64 `db:"source_id" bson:"source_id" comment:"来源ID" json:"source_id" xml:"source_id"`
	SourceType      string `db:"source_type" bson:"source_type" comment:"来源类型" json:"source_type" xml:"source_type"`
	Disabled        string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	Method          string `db:"method" bson:"method" comment:"发送方式(mobile-手机;email-邮箱)" json:"method" xml:"method"`
	To              string `db:"to" bson:"to" comment:"发送目标" json:"to" xml:"to"`
	Provider        string `db:"provider" bson:"provider" comment:"发送平台" json:"provider" xml:"provider"`
	Result          string `db:"result" bson:"result" comment:"发送结果描述" json:"result" xml:"result"`
	Status          string `db:"status" bson:"status" comment:"发送状态(none-无需发送)" json:"status" xml:"status"`
	Retries         uint   `db:"retries" bson:"retries" comment:"重试次数" json:"retries" xml:"retries"`
	Content         string `db:"content" bson:"content" comment:"发送消息内容" json:"content" xml:"content"`
	Params          string `db:"params" bson:"params" comment:"发送消息参数(JSON)" json:"params" xml:"params"`
	AppointmentTime uint   `db:"appointment_time" bson:"appointment_time" comment:"预约发送时间" json:"appointment_time" xml:"appointment_time"`
	// contains filtered or unexported fields
}

SendingLog 邮件短信等发送日志

func (*SendingLog) Add

func (a *SendingLog) Add() (pk interface{}, err error)

func (*SendingLog) AsKV

func (a *SendingLog) AsKV(keyField string, valueField string, inputRows ...[]*SendingLog) map[string]interface{}

func (*SendingLog) AsMap

func (a *SendingLog) AsMap() map[string]interface{}

func (*SendingLog) AsRow

func (a *SendingLog) AsRow() map[string]interface{}

func (*SendingLog) BatchValidate

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

func (*SendingLog) CPAFrom

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

func (*SendingLog) Context

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

func (*SendingLog) Count

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

func (*SendingLog) Delete

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

func (*SendingLog) Edit

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

func (*SendingLog) EventOFF

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

func (*SendingLog) EventON

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

func (*SendingLog) FromRow

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

func (*SendingLog) Get

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

func (*SendingLog) GroupBy

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

func (*SendingLog) InitObjects

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

func (*SendingLog) KeyBy

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

func (*SendingLog) List

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

func (*SendingLog) ListByOffset

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

func (*SendingLog) Name_

func (a *SendingLog) Name_() string

func (*SendingLog) Namer

func (a *SendingLog) Namer() func(string) string

func (*SendingLog) New

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

func (*SendingLog) NewObjects

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

func (*SendingLog) NewParam

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

func (*SendingLog) Objects

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

func (*SendingLog) Param

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

func (*SendingLog) Reset

func (a *SendingLog) Reset() *SendingLog

func (*SendingLog) Set

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

func (*SendingLog) SetConnID

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

func (*SendingLog) SetContext

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

func (*SendingLog) SetField

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

func (*SendingLog) SetFields

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

func (*SendingLog) SetNamer

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

func (*SendingLog) SetParam

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

func (*SendingLog) Short_

func (a *SendingLog) Short_() string

func (*SendingLog) Struct_

func (a *SendingLog) Struct_() string

func (*SendingLog) Trans

func (a *SendingLog) Trans() *factory.Transaction

func (*SendingLog) Upsert

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

func (*SendingLog) Use

func (a *SendingLog) Use(trans *factory.Transaction) factory.Model

func (*SendingLog) Validate

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

type Slice_AccessLog

type Slice_AccessLog []*AccessLog

func (Slice_AccessLog) Range

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

func (Slice_AccessLog) RangeRaw

func (s Slice_AccessLog) RangeRaw(fn func(m *AccessLog) error) error

type Slice_CloudStorage

type Slice_CloudStorage []*CloudStorage

func (Slice_CloudStorage) Range

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

func (Slice_CloudStorage) RangeRaw

func (s Slice_CloudStorage) RangeRaw(fn func(m *CloudStorage) error) error

type Slice_CodeInvitation

type Slice_CodeInvitation []*CodeInvitation

func (Slice_CodeInvitation) Range

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

func (Slice_CodeInvitation) RangeRaw

func (s Slice_CodeInvitation) RangeRaw(fn func(m *CodeInvitation) error) error

type Slice_CodeVerification

type Slice_CodeVerification []*CodeVerification

func (Slice_CodeVerification) Range

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

func (Slice_CodeVerification) RangeRaw

func (s Slice_CodeVerification) RangeRaw(fn func(m *CodeVerification) error) error

type Slice_CollectorExport

type Slice_CollectorExport []*CollectorExport

func (Slice_CollectorExport) Range

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

func (Slice_CollectorExport) RangeRaw

func (s Slice_CollectorExport) RangeRaw(fn func(m *CollectorExport) error) error

type Slice_CollectorExportLog

type Slice_CollectorExportLog []*CollectorExportLog

func (Slice_CollectorExportLog) Range

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

func (Slice_CollectorExportLog) RangeRaw

func (s Slice_CollectorExportLog) RangeRaw(fn func(m *CollectorExportLog) error) error

type Slice_CollectorGroup

type Slice_CollectorGroup []*CollectorGroup

func (Slice_CollectorGroup) Range

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

func (Slice_CollectorGroup) RangeRaw

func (s Slice_CollectorGroup) RangeRaw(fn func(m *CollectorGroup) error) error

type Slice_CollectorHistory

type Slice_CollectorHistory []*CollectorHistory

func (Slice_CollectorHistory) Range

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

func (Slice_CollectorHistory) RangeRaw

func (s Slice_CollectorHistory) RangeRaw(fn func(m *CollectorHistory) error) error

type Slice_CollectorPage

type Slice_CollectorPage []*CollectorPage

func (Slice_CollectorPage) Range

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

func (Slice_CollectorPage) RangeRaw

func (s Slice_CollectorPage) RangeRaw(fn func(m *CollectorPage) error) error

type Slice_CollectorRule

type Slice_CollectorRule []*CollectorRule

func (Slice_CollectorRule) Range

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

func (Slice_CollectorRule) RangeRaw

func (s Slice_CollectorRule) RangeRaw(fn func(m *CollectorRule) error) error

type Slice_Command

type Slice_Command []*Command

func (Slice_Command) Range

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

func (Slice_Command) RangeRaw

func (s Slice_Command) RangeRaw(fn func(m *Command) error) error

type Slice_Config

type Slice_Config []*Config

func (Slice_Config) Range

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

func (Slice_Config) RangeRaw

func (s Slice_Config) RangeRaw(fn func(m *Config) error) error

type Slice_DbAccount

type Slice_DbAccount []*DbAccount

func (Slice_DbAccount) Range

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

func (Slice_DbAccount) RangeRaw

func (s Slice_DbAccount) RangeRaw(fn func(m *DbAccount) error) error

type Slice_DbSync

type Slice_DbSync []*DbSync

func (Slice_DbSync) Range

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

func (Slice_DbSync) RangeRaw

func (s Slice_DbSync) RangeRaw(fn func(m *DbSync) error) error

type Slice_DbSyncLog

type Slice_DbSyncLog []*DbSyncLog

func (Slice_DbSyncLog) Range

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

func (Slice_DbSyncLog) RangeRaw

func (s Slice_DbSyncLog) RangeRaw(fn func(m *DbSyncLog) error) error

type Slice_File

type Slice_File []*File

func (Slice_File) Range

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

func (Slice_File) RangeRaw

func (s Slice_File) RangeRaw(fn func(m *File) error) error

type Slice_FileEmbedded

type Slice_FileEmbedded []*FileEmbedded

func (Slice_FileEmbedded) Range

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

func (Slice_FileEmbedded) RangeRaw

func (s Slice_FileEmbedded) RangeRaw(fn func(m *FileEmbedded) error) error

type Slice_FileThumb

type Slice_FileThumb []*FileThumb

func (Slice_FileThumb) Range

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

func (Slice_FileThumb) RangeRaw

func (s Slice_FileThumb) RangeRaw(fn func(m *FileThumb) error) error

type Slice_ForeverProcess

type Slice_ForeverProcess []*ForeverProcess

func (Slice_ForeverProcess) Range

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

func (Slice_ForeverProcess) RangeRaw

func (s Slice_ForeverProcess) RangeRaw(fn func(m *ForeverProcess) error) error

type Slice_FrpClient

type Slice_FrpClient []*FrpClient

func (Slice_FrpClient) Range

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

func (Slice_FrpClient) RangeRaw

func (s Slice_FrpClient) RangeRaw(fn func(m *FrpClient) error) error

type Slice_FrpGroup

type Slice_FrpGroup []*FrpGroup

func (Slice_FrpGroup) Range

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

func (Slice_FrpGroup) RangeRaw

func (s Slice_FrpGroup) RangeRaw(fn func(m *FrpGroup) error) error

type Slice_FrpServer

type Slice_FrpServer []*FrpServer

func (Slice_FrpServer) Range

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

func (Slice_FrpServer) RangeRaw

func (s Slice_FrpServer) RangeRaw(fn func(m *FrpServer) error) error

type Slice_FtpUser

type Slice_FtpUser []*FtpUser

func (Slice_FtpUser) Range

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

func (Slice_FtpUser) RangeRaw

func (s Slice_FtpUser) RangeRaw(fn func(m *FtpUser) error) error

type Slice_FtpUserGroup

type Slice_FtpUserGroup []*FtpUserGroup

func (Slice_FtpUserGroup) Range

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

func (Slice_FtpUserGroup) RangeRaw

func (s Slice_FtpUserGroup) RangeRaw(fn func(m *FtpUserGroup) error) error

type Slice_SendingLog

type Slice_SendingLog []*SendingLog

func (Slice_SendingLog) Range

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

func (Slice_SendingLog) RangeRaw

func (s Slice_SendingLog) RangeRaw(fn func(m *SendingLog) error) error

type Slice_SshUser

type Slice_SshUser []*SshUser

func (Slice_SshUser) Range

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

func (Slice_SshUser) RangeRaw

func (s Slice_SshUser) RangeRaw(fn func(m *SshUser) error) error

type Slice_SshUserGroup

type Slice_SshUserGroup []*SshUserGroup

func (Slice_SshUserGroup) Range

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

func (Slice_SshUserGroup) RangeRaw

func (s Slice_SshUserGroup) RangeRaw(fn func(m *SshUserGroup) error) error

type Slice_Task

type Slice_Task []*Task

func (Slice_Task) Range

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

func (Slice_Task) RangeRaw

func (s Slice_Task) RangeRaw(fn func(m *Task) error) error

type Slice_TaskGroup

type Slice_TaskGroup []*TaskGroup

func (Slice_TaskGroup) Range

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

func (Slice_TaskGroup) RangeRaw

func (s Slice_TaskGroup) RangeRaw(fn func(m *TaskGroup) error) error

type Slice_TaskLog

type Slice_TaskLog []*TaskLog

func (Slice_TaskLog) Range

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

func (Slice_TaskLog) RangeRaw

func (s Slice_TaskLog) RangeRaw(fn func(m *TaskLog) error) error

type Slice_User

type Slice_User []*User

func (Slice_User) Range

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

func (Slice_User) RangeRaw

func (s Slice_User) RangeRaw(fn func(m *User) error) error

type Slice_UserRole

type Slice_UserRole []*UserRole

func (Slice_UserRole) Range

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

func (Slice_UserRole) RangeRaw

func (s Slice_UserRole) RangeRaw(fn func(m *UserRole) error) error

type Slice_UserU2f

type Slice_UserU2f []*UserU2f

func (Slice_UserU2f) Range

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

func (Slice_UserU2f) RangeRaw

func (s Slice_UserU2f) RangeRaw(fn func(m *UserU2f) error) error

type Slice_Vhost

type Slice_Vhost []*Vhost

func (Slice_Vhost) Range

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

func (Slice_Vhost) RangeRaw

func (s Slice_Vhost) RangeRaw(fn func(m *Vhost) error) error

type Slice_VhostGroup

type Slice_VhostGroup []*VhostGroup

func (Slice_VhostGroup) Range

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

func (Slice_VhostGroup) RangeRaw

func (s Slice_VhostGroup) RangeRaw(fn func(m *VhostGroup) error) error

type SshUser

type SshUser struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Uid         uint   `db:"uid" bson:"uid" comment:"UID" json:"uid" xml:"uid"`
	Host        string `db:"host" bson:"host" comment:"主机名" json:"host" xml:"host"`
	Port        int    `db:"port" bson:"port" comment:"端口" json:"port" xml:"port"`
	Charset     string `db:"charset" bson:"charset" comment:"字符集" json:"charset" xml:"charset"`
	Username    string `db:"username" bson:"username" comment:"用户名" json:"username" xml:"username"`
	Password    string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Name        string `db:"name" bson:"name" comment:"账号名称" json:"name" xml:"name"`
	Options     string `db:"options" bson:"options" comment:"其它选项(JSON)" json:"options" xml:"options"`
	PrivateKey  string `db:"private_key" bson:"private_key" comment:"私钥内容" json:"private_key" xml:"private_key"`
	Passphrase  string `db:"passphrase" bson:"passphrase" comment:"私钥口令" json:"passphrase" xml:"passphrase"`
	Protocol    string `db:"protocol" bson:"protocol" comment:"连接协议" json:"protocol" xml:"protocol"`
	Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	GroupId     uint   `db:"group_id" bson:"group_id" comment:"组" json:"group_id" xml:"group_id"`
	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
}

SshUser 数据库账号

func (*SshUser) Add

func (a *SshUser) Add() (pk interface{}, err error)

func (*SshUser) AsKV

func (a *SshUser) AsKV(keyField string, valueField string, inputRows ...[]*SshUser) map[string]interface{}

func (*SshUser) AsMap

func (a *SshUser) AsMap() map[string]interface{}

func (*SshUser) AsRow

func (a *SshUser) AsRow() map[string]interface{}

func (*SshUser) BatchValidate

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

func (*SshUser) CPAFrom

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

func (*SshUser) Context

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

func (*SshUser) Count

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

func (*SshUser) Delete

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

func (*SshUser) Edit

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

func (*SshUser) EventOFF

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

func (*SshUser) EventON

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

func (*SshUser) FromRow

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

func (*SshUser) Get

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

func (*SshUser) GroupBy

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

func (*SshUser) InitObjects

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

func (*SshUser) KeyBy

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

func (*SshUser) List

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

func (*SshUser) ListByOffset

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

func (*SshUser) Name_

func (a *SshUser) Name_() string

func (*SshUser) Namer

func (a *SshUser) Namer() func(string) string

func (*SshUser) New

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

func (*SshUser) NewObjects

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

func (*SshUser) NewParam

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

func (*SshUser) Objects

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

func (*SshUser) Param

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

func (*SshUser) Reset

func (a *SshUser) Reset() *SshUser

func (*SshUser) Set

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

func (*SshUser) SetConnID

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

func (*SshUser) SetContext

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

func (*SshUser) SetField

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

func (*SshUser) SetFields

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

func (*SshUser) SetNamer

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

func (*SshUser) SetParam

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

func (*SshUser) Short_

func (a *SshUser) Short_() string

func (*SshUser) Struct_

func (a *SshUser) Struct_() string

func (*SshUser) Trans

func (a *SshUser) Trans() *factory.Transaction

func (*SshUser) Upsert

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

func (*SshUser) Use

func (a *SshUser) Use(trans *factory.Transaction) factory.Model

func (*SshUser) Validate

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

type SshUserGroup

type SshUserGroup 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"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

SshUserGroup SSH账号组

func (*SshUserGroup) Add

func (a *SshUserGroup) Add() (pk interface{}, err error)

func (*SshUserGroup) AsKV

func (a *SshUserGroup) AsKV(keyField string, valueField string, inputRows ...[]*SshUserGroup) map[string]interface{}

func (*SshUserGroup) AsMap

func (a *SshUserGroup) AsMap() map[string]interface{}

func (*SshUserGroup) AsRow

func (a *SshUserGroup) AsRow() map[string]interface{}

func (*SshUserGroup) BatchValidate

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

func (*SshUserGroup) CPAFrom

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

func (*SshUserGroup) Context

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

func (*SshUserGroup) Count

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

func (*SshUserGroup) Delete

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

func (*SshUserGroup) Edit

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

func (*SshUserGroup) EventOFF

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

func (*SshUserGroup) EventON

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

func (*SshUserGroup) FromRow

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

func (*SshUserGroup) Get

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

func (*SshUserGroup) GroupBy

func (a *SshUserGroup) GroupBy(keyField string, inputRows ...[]*SshUserGroup) map[string][]*SshUserGroup

func (*SshUserGroup) InitObjects

func (a *SshUserGroup) InitObjects() *[]*SshUserGroup

func (*SshUserGroup) KeyBy

func (a *SshUserGroup) KeyBy(keyField string, inputRows ...[]*SshUserGroup) map[string]*SshUserGroup

func (*SshUserGroup) List

func (a *SshUserGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*SshUserGroup) ListByOffset

func (a *SshUserGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*SshUserGroup) Name_

func (a *SshUserGroup) Name_() string

func (*SshUserGroup) Namer

func (a *SshUserGroup) Namer() func(string) string

func (*SshUserGroup) New

func (a *SshUserGroup) New(structName string, connID ...int) factory.Model

func (*SshUserGroup) NewObjects

func (a *SshUserGroup) NewObjects() factory.Ranger

func (*SshUserGroup) NewParam

func (a *SshUserGroup) NewParam() *factory.Param

func (*SshUserGroup) Objects

func (a *SshUserGroup) Objects() []*SshUserGroup

func (*SshUserGroup) Param

func (a *SshUserGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*SshUserGroup) Reset

func (a *SshUserGroup) Reset() *SshUserGroup

func (*SshUserGroup) Set

func (a *SshUserGroup) Set(key interface{}, value ...interface{})

func (*SshUserGroup) SetConnID

func (a *SshUserGroup) SetConnID(connID int) factory.Model

func (*SshUserGroup) SetContext

func (a *SshUserGroup) SetContext(ctx echo.Context) factory.Model

func (*SshUserGroup) SetField

func (a *SshUserGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*SshUserGroup) SetFields

func (a *SshUserGroup) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*SshUserGroup) SetNamer

func (a *SshUserGroup) SetNamer(namer func(string) string) factory.Model

func (*SshUserGroup) SetParam

func (a *SshUserGroup) SetParam(param *factory.Param) factory.Model

func (*SshUserGroup) Short_

func (a *SshUserGroup) Short_() string

func (*SshUserGroup) Struct_

func (a *SshUserGroup) Struct_() string

func (*SshUserGroup) Trans

func (a *SshUserGroup) Trans() *factory.Transaction

func (*SshUserGroup) Upsert

func (a *SshUserGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*SshUserGroup) Use

func (a *SshUserGroup) Use(trans *factory.Transaction) factory.Model

func (*SshUserGroup) Validate

func (a *SshUserGroup) Validate(field string, value interface{}) error

type Task

type Task 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"`
	GroupId       uint   `db:"group_id" bson:"group_id" comment:"分组ID" json:"group_id" xml:"group_id"`
	Name          string `db:"name" bson:"name" comment:"任务名称" json:"name" xml:"name"`
	Type          int    `db:"type" bson:"type" comment:"任务类型" json:"type" xml:"type"`
	Description   string `db:"description" bson:"description" comment:"任务描述" json:"description" xml:"description"`
	CronSpec      string `db:"cron_spec" bson:"cron_spec" comment:"时间表达式" json:"cron_spec" xml:"cron_spec"`
	Concurrent    uint   `db:"concurrent" bson:"concurrent" comment:"是否支持多实例" json:"concurrent" xml:"concurrent"`
	Command       string `db:"command" bson:"command" comment:"命令详情" json:"command" xml:"command"`
	WorkDirectory string `db:"work_directory" bson:"work_directory" comment:"工作目录" json:"work_directory" xml:"work_directory"`
	Env           string `db:"env" bson:"env" comment:"环境变量(一行一个,格式为:var1=val1)" json:"env" xml:"env"`
	Disabled      string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	EnableNotify  uint   `db:"enable_notify" bson:"enable_notify" comment:"是否启用通知" json:"enable_notify" xml:"enable_notify"`
	NotifyEmail   string `db:"notify_email" bson:"notify_email" comment:"通知人列表" json:"notify_email" xml:"notify_email"`
	Timeout       uint64 `db:"timeout" bson:"timeout" comment:"超时设置" json:"timeout" xml:"timeout"`
	ExecuteTimes  uint   `db:"execute_times" bson:"execute_times" comment:"累计执行次数" json:"execute_times" xml:"execute_times"`
	PrevTime      uint   `db:"prev_time" bson:"prev_time" comment:"上次执行时间" json:"prev_time" xml:"prev_time"`
	Created       uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated       uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	ClosedLog     string `db:"closed_log" bson:"closed_log" comment:"是否(Y/N)关闭日志" json:"closed_log" xml:"closed_log"`
	// contains filtered or unexported fields
}

Task 任务

func (*Task) Add

func (a *Task) Add() (pk interface{}, err error)

func (*Task) AsKV

func (a *Task) AsKV(keyField string, valueField string, inputRows ...[]*Task) map[string]interface{}

func (*Task) AsMap

func (a *Task) AsMap() map[string]interface{}

func (*Task) AsRow

func (a *Task) AsRow() map[string]interface{}

func (*Task) BatchValidate

func (a *Task) BatchValidate(kvset map[string]interface{}) error

func (*Task) CPAFrom

func (a *Task) CPAFrom(source factory.Model) factory.Model

func (*Task) Context

func (a *Task) Context() echo.Context

func (*Task) Count

func (a *Task) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*Task) Delete

func (a *Task) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*Task) Edit

func (a *Task) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*Task) EventOFF

func (a *Task) EventOFF(off ...bool) factory.Model

func (*Task) EventON

func (a *Task) EventON(on ...bool) factory.Model

func (*Task) FromRow

func (a *Task) FromRow(row map[string]interface{})

func (*Task) Get

func (a *Task) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) GroupBy

func (a *Task) GroupBy(keyField string, inputRows ...[]*Task) map[string][]*Task

func (*Task) InitObjects

func (a *Task) InitObjects() *[]*Task

func (*Task) KeyBy

func (a *Task) KeyBy(keyField string, inputRows ...[]*Task) map[string]*Task

func (*Task) List

func (a *Task) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*Task) ListByOffset

func (a *Task) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*Task) Name_

func (a *Task) Name_() string

func (*Task) Namer

func (a *Task) Namer() func(string) string

func (*Task) New

func (a *Task) New(structName string, connID ...int) factory.Model

func (*Task) NewObjects

func (a *Task) NewObjects() factory.Ranger

func (*Task) NewParam

func (a *Task) NewParam() *factory.Param

func (*Task) Objects

func (a *Task) Objects() []*Task

func (*Task) Param

func (a *Task) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*Task) Reset

func (a *Task) Reset() *Task

func (*Task) Set

func (a *Task) Set(key interface{}, value ...interface{})

func (*Task) SetConnID

func (a *Task) SetConnID(connID int) factory.Model

func (*Task) SetContext

func (a *Task) SetContext(ctx echo.Context) factory.Model

func (*Task) SetField

func (a *Task) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*Task) SetFields

func (a *Task) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*Task) SetNamer

func (a *Task) SetNamer(namer func(string) string) factory.Model

func (*Task) SetParam

func (a *Task) SetParam(param *factory.Param) factory.Model

func (*Task) Short_

func (a *Task) Short_() string

func (*Task) Struct_

func (a *Task) Struct_() string

func (*Task) Trans

func (a *Task) Trans() *factory.Transaction

func (*Task) Upsert

func (a *Task) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*Task) Use

func (a *Task) Use(trans *factory.Transaction) factory.Model

func (*Task) Validate

func (a *Task) Validate(field string, value interface{}) error

type TaskGroup

type TaskGroup 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"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	CmdPrefix   string `db:"cmd_prefix" bson:"cmd_prefix" comment:"命令前缀" json:"cmd_prefix" xml:"cmd_prefix"`
	CmdSuffix   string `db:"cmd_suffix" bson:"cmd_suffix" comment:"命令后缀" json:"cmd_suffix" xml:"cmd_suffix"`
	// contains filtered or unexported fields
}

TaskGroup 任务组

func (*TaskGroup) Add

func (a *TaskGroup) Add() (pk interface{}, err error)

func (*TaskGroup) AsKV

func (a *TaskGroup) AsKV(keyField string, valueField string, inputRows ...[]*TaskGroup) map[string]interface{}

func (*TaskGroup) AsMap

func (a *TaskGroup) AsMap() map[string]interface{}

func (*TaskGroup) AsRow

func (a *TaskGroup) AsRow() map[string]interface{}

func (*TaskGroup) BatchValidate

func (a *TaskGroup) BatchValidate(kvset map[string]interface{}) error

func (*TaskGroup) CPAFrom

func (a *TaskGroup) CPAFrom(source factory.Model) factory.Model

func (*TaskGroup) Context

func (a *TaskGroup) Context() echo.Context

func (*TaskGroup) Count

func (a *TaskGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*TaskGroup) Delete

func (a *TaskGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*TaskGroup) Edit

func (a *TaskGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*TaskGroup) EventOFF

func (a *TaskGroup) EventOFF(off ...bool) factory.Model

func (*TaskGroup) EventON

func (a *TaskGroup) EventON(on ...bool) factory.Model

func (*TaskGroup) FromRow

func (a *TaskGroup) FromRow(row map[string]interface{})

func (*TaskGroup) Get

func (a *TaskGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) GroupBy

func (a *TaskGroup) GroupBy(keyField string, inputRows ...[]*TaskGroup) map[string][]*TaskGroup

func (*TaskGroup) InitObjects

func (a *TaskGroup) InitObjects() *[]*TaskGroup

func (*TaskGroup) KeyBy

func (a *TaskGroup) KeyBy(keyField string, inputRows ...[]*TaskGroup) map[string]*TaskGroup

func (*TaskGroup) List

func (a *TaskGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*TaskGroup) ListByOffset

func (a *TaskGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*TaskGroup) Name_

func (a *TaskGroup) Name_() string

func (*TaskGroup) Namer

func (a *TaskGroup) Namer() func(string) string

func (*TaskGroup) New

func (a *TaskGroup) New(structName string, connID ...int) factory.Model

func (*TaskGroup) NewObjects

func (a *TaskGroup) NewObjects() factory.Ranger

func (*TaskGroup) NewParam

func (a *TaskGroup) NewParam() *factory.Param

func (*TaskGroup) Objects

func (a *TaskGroup) Objects() []*TaskGroup

func (*TaskGroup) Param

func (a *TaskGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*TaskGroup) Reset

func (a *TaskGroup) Reset() *TaskGroup

func (*TaskGroup) Set

func (a *TaskGroup) Set(key interface{}, value ...interface{})

func (*TaskGroup) SetConnID

func (a *TaskGroup) SetConnID(connID int) factory.Model

func (*TaskGroup) SetContext

func (a *TaskGroup) SetContext(ctx echo.Context) factory.Model

func (*TaskGroup) SetField

func (a *TaskGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*TaskGroup) SetFields

func (a *TaskGroup) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*TaskGroup) SetNamer

func (a *TaskGroup) SetNamer(namer func(string) string) factory.Model

func (*TaskGroup) SetParam

func (a *TaskGroup) SetParam(param *factory.Param) factory.Model

func (*TaskGroup) Short_

func (a *TaskGroup) Short_() string

func (*TaskGroup) Struct_

func (a *TaskGroup) Struct_() string

func (*TaskGroup) Trans

func (a *TaskGroup) Trans() *factory.Transaction

func (*TaskGroup) Upsert

func (a *TaskGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*TaskGroup) Use

func (a *TaskGroup) Use(trans *factory.Transaction) factory.Model

func (*TaskGroup) Validate

func (a *TaskGroup) Validate(field string, value interface{}) error

type TaskLog

type TaskLog struct {
	Id      uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	TaskId  uint   `db:"task_id" bson:"task_id" comment:"任务ID" json:"task_id" xml:"task_id"`
	Output  string `db:"output" bson:"output" comment:"任务输出" json:"output" xml:"output"`
	Error   string `db:"error" bson:"error" comment:"错误信息" json:"error" xml:"error"`
	Status  string `db:"status" bson:"status" comment:"状态" json:"status" xml:"status"`
	Elapsed uint   `db:"elapsed" bson:"elapsed" comment:"消耗时间(毫秒)" json:"elapsed" xml:"elapsed"`
	Created uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

TaskLog 任务日志

func (*TaskLog) Add

func (a *TaskLog) Add() (pk interface{}, err error)

func (*TaskLog) AsKV

func (a *TaskLog) AsKV(keyField string, valueField string, inputRows ...[]*TaskLog) map[string]interface{}

func (*TaskLog) AsMap

func (a *TaskLog) AsMap() map[string]interface{}

func (*TaskLog) AsRow

func (a *TaskLog) AsRow() map[string]interface{}

func (*TaskLog) BatchValidate

func (a *TaskLog) BatchValidate(kvset map[string]interface{}) error

func (*TaskLog) CPAFrom

func (a *TaskLog) CPAFrom(source factory.Model) factory.Model

func (*TaskLog) Context

func (a *TaskLog) Context() echo.Context

func (*TaskLog) Count

func (a *TaskLog) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*TaskLog) Delete

func (a *TaskLog) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*TaskLog) Edit

func (a *TaskLog) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*TaskLog) EventOFF

func (a *TaskLog) EventOFF(off ...bool) factory.Model

func (*TaskLog) EventON

func (a *TaskLog) EventON(on ...bool) factory.Model

func (*TaskLog) FromRow

func (a *TaskLog) FromRow(row map[string]interface{})

func (*TaskLog) Get

func (a *TaskLog) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) GroupBy

func (a *TaskLog) GroupBy(keyField string, inputRows ...[]*TaskLog) map[string][]*TaskLog

func (*TaskLog) InitObjects

func (a *TaskLog) InitObjects() *[]*TaskLog

func (*TaskLog) KeyBy

func (a *TaskLog) KeyBy(keyField string, inputRows ...[]*TaskLog) map[string]*TaskLog

func (*TaskLog) List

func (a *TaskLog) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*TaskLog) ListByOffset

func (a *TaskLog) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*TaskLog) Name_

func (a *TaskLog) Name_() string

func (*TaskLog) Namer

func (a *TaskLog) Namer() func(string) string

func (*TaskLog) New

func (a *TaskLog) New(structName string, connID ...int) factory.Model

func (*TaskLog) NewObjects

func (a *TaskLog) NewObjects() factory.Ranger

func (*TaskLog) NewParam

func (a *TaskLog) NewParam() *factory.Param

func (*TaskLog) Objects

func (a *TaskLog) Objects() []*TaskLog

func (*TaskLog) Param

func (a *TaskLog) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*TaskLog) Reset

func (a *TaskLog) Reset() *TaskLog

func (*TaskLog) Set

func (a *TaskLog) Set(key interface{}, value ...interface{})

func (*TaskLog) SetConnID

func (a *TaskLog) SetConnID(connID int) factory.Model

func (*TaskLog) SetContext

func (a *TaskLog) SetContext(ctx echo.Context) factory.Model

func (*TaskLog) SetField

func (a *TaskLog) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*TaskLog) SetFields

func (a *TaskLog) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*TaskLog) SetNamer

func (a *TaskLog) SetNamer(namer func(string) string) factory.Model

func (*TaskLog) SetParam

func (a *TaskLog) SetParam(param *factory.Param) factory.Model

func (*TaskLog) Short_

func (a *TaskLog) Short_() string

func (*TaskLog) Struct_

func (a *TaskLog) Struct_() string

func (*TaskLog) Trans

func (a *TaskLog) Trans() *factory.Transaction

func (*TaskLog) Upsert

func (a *TaskLog) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*TaskLog) Use

func (a *TaskLog) Use(trans *factory.Transaction) factory.Model

func (*TaskLog) Validate

func (a *TaskLog) Validate(field string, value interface{}) error

type User

type User struct {
	Id        uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Username  string `db:"username" bson:"username" comment:"用户名" json:"username" xml:"username"`
	Email     string `db:"email" bson:"email" comment:"邮箱" json:"email" xml:"email"`
	Mobile    string `db:"mobile" bson:"mobile" comment:"手机号" json:"mobile" xml:"mobile"`
	Password  string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Salt      string `db:"salt" bson:"salt" comment:"盐值" json:"salt" xml:"salt"`
	SafePwd   string `db:"safe_pwd" bson:"safe_pwd" comment:"安全密码" json:"safe_pwd" xml:"safe_pwd"`
	Avatar    string `db:"avatar" bson:"avatar" comment:"头像" json:"avatar" xml:"avatar"`
	Gender    string `db:"gender" bson:"gender" comment:"性别(male-男;female-女;secret-保密)" json:"gender" xml:"gender"`
	LastLogin uint   `db:"last_login" bson:"last_login" comment:"最后登录时间" json:"last_login" xml:"last_login"`
	LastIp    string `db:"last_ip" bson:"last_ip" comment:"最后登录IP" json:"last_ip" xml:"last_ip"`
	Disabled  string `db:"disabled" bson:"disabled" comment:"状态" json:"disabled" xml:"disabled"`
	Online    string `db:"online" bson:"online" comment:"是否在线" json:"online" xml:"online"`
	RoleIds   string `db:"role_ids" bson:"role_ids" comment:"角色ID(多个用“,”分隔开)" json:"role_ids" xml:"role_ids"`
	Created   uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated   uint   `db:"updated" bson:"updated" comment:"更新时间" json:"updated" xml:"updated"`
	FileSize  uint64 `db:"file_size" bson:"file_size" comment:"上传文件总大小" json:"file_size" xml:"file_size"`
	FileNum   uint64 `db:"file_num" bson:"file_num" comment:"上传文件数量" json:"file_num" xml:"file_num"`
	// contains filtered or unexported fields
}

User 用户

func (*User) Add

func (a *User) Add() (pk interface{}, err error)

func (*User) AsKV

func (a *User) AsKV(keyField string, valueField string, inputRows ...[]*User) map[string]interface{}

func (*User) AsMap

func (a *User) AsMap() map[string]interface{}

func (*User) AsRow

func (a *User) AsRow() map[string]interface{}

func (*User) BatchValidate

func (a *User) BatchValidate(kvset map[string]interface{}) error

func (*User) CPAFrom

func (a *User) CPAFrom(source factory.Model) factory.Model

func (*User) Context

func (a *User) Context() echo.Context

func (*User) Count

func (a *User) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*User) Delete

func (a *User) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*User) Edit

func (a *User) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*User) EventOFF

func (a *User) EventOFF(off ...bool) factory.Model

func (*User) EventON

func (a *User) EventON(on ...bool) factory.Model

func (*User) FromRow

func (a *User) FromRow(row map[string]interface{})

func (*User) Get

func (a *User) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) GroupBy

func (a *User) GroupBy(keyField string, inputRows ...[]*User) map[string][]*User

func (*User) InitObjects

func (a *User) InitObjects() *[]*User

func (*User) KeyBy

func (a *User) KeyBy(keyField string, inputRows ...[]*User) map[string]*User

func (*User) List

func (a *User) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*User) ListByOffset

func (a *User) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*User) Name_

func (a *User) Name_() string

func (*User) Namer

func (a *User) Namer() func(string) string

func (*User) New

func (a *User) New(structName string, connID ...int) factory.Model

func (*User) NewObjects

func (a *User) NewObjects() factory.Ranger

func (*User) NewParam

func (a *User) NewParam() *factory.Param

func (*User) Objects

func (a *User) Objects() []*User

func (*User) Param

func (a *User) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*User) Reset

func (a *User) Reset() *User

func (*User) Set

func (a *User) Set(key interface{}, value ...interface{})

func (*User) SetConnID

func (a *User) SetConnID(connID int) factory.Model

func (*User) SetContext

func (a *User) SetContext(ctx echo.Context) factory.Model

func (*User) SetField

func (a *User) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*User) SetFields

func (a *User) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*User) SetNamer

func (a *User) SetNamer(namer func(string) string) factory.Model

func (*User) SetParam

func (a *User) SetParam(param *factory.Param) factory.Model

func (*User) Short_

func (a *User) Short_() string

func (*User) Struct_

func (a *User) Struct_() string

func (*User) Trans

func (a *User) Trans() *factory.Transaction

func (*User) Upsert

func (a *User) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*User) Use

func (a *User) Use(trans *factory.Transaction) factory.Model

func (*User) Validate

func (a *User) Validate(field string, value interface{}) error

type UserRole

type UserRole 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"`
	Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	Created     uint   `db:"created" bson:"created" comment:"添加时间" json:"created" xml:"created"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	Disabled    string `db:"disabled" bson:"disabled" comment:"是否禁用" json:"disabled" xml:"disabled"`
	ParentId    uint   `db:"parent_id" bson:"parent_id" comment:"父级ID" json:"parent_id" xml:"parent_id"`
	PermCmd     string `db:"perm_cmd" bson:"perm_cmd" comment:"指令集权限(多个用“,”分隔开)" json:"perm_cmd" xml:"perm_cmd"`
	PermAction  string `db:"perm_action" bson:"perm_action" comment:"行为权限(多个用“,”分隔开)" json:"perm_action" xml:"perm_action"`
	// contains filtered or unexported fields
}

UserRole 用户角色

func (*UserRole) Add

func (a *UserRole) Add() (pk interface{}, err error)

func (*UserRole) AsKV

func (a *UserRole) AsKV(keyField string, valueField string, inputRows ...[]*UserRole) map[string]interface{}

func (*UserRole) AsMap

func (a *UserRole) AsMap() map[string]interface{}

func (*UserRole) AsRow

func (a *UserRole) AsRow() map[string]interface{}

func (*UserRole) BatchValidate

func (a *UserRole) BatchValidate(kvset map[string]interface{}) error

func (*UserRole) CPAFrom

func (a *UserRole) CPAFrom(source factory.Model) factory.Model

func (*UserRole) Context

func (a *UserRole) Context() echo.Context

func (*UserRole) Count

func (a *UserRole) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*UserRole) Delete

func (a *UserRole) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*UserRole) Edit

func (a *UserRole) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*UserRole) EventOFF

func (a *UserRole) EventOFF(off ...bool) factory.Model

func (*UserRole) EventON

func (a *UserRole) EventON(on ...bool) factory.Model

func (*UserRole) FromRow

func (a *UserRole) FromRow(row map[string]interface{})

func (*UserRole) Get

func (a *UserRole) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserRole) GroupBy

func (a *UserRole) GroupBy(keyField string, inputRows ...[]*UserRole) map[string][]*UserRole

func (*UserRole) InitObjects

func (a *UserRole) InitObjects() *[]*UserRole

func (*UserRole) KeyBy

func (a *UserRole) KeyBy(keyField string, inputRows ...[]*UserRole) map[string]*UserRole

func (*UserRole) List

func (a *UserRole) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*UserRole) ListByOffset

func (a *UserRole) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*UserRole) Name_

func (a *UserRole) Name_() string

func (*UserRole) Namer

func (a *UserRole) Namer() func(string) string

func (*UserRole) New

func (a *UserRole) New(structName string, connID ...int) factory.Model

func (*UserRole) NewObjects

func (a *UserRole) NewObjects() factory.Ranger

func (*UserRole) NewParam

func (a *UserRole) NewParam() *factory.Param

func (*UserRole) Objects

func (a *UserRole) Objects() []*UserRole

func (*UserRole) Param

func (a *UserRole) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*UserRole) Reset

func (a *UserRole) Reset() *UserRole

func (*UserRole) Set

func (a *UserRole) Set(key interface{}, value ...interface{})

func (*UserRole) SetConnID

func (a *UserRole) SetConnID(connID int) factory.Model

func (*UserRole) SetContext

func (a *UserRole) SetContext(ctx echo.Context) factory.Model

func (*UserRole) SetField

func (a *UserRole) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*UserRole) SetFields

func (a *UserRole) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*UserRole) SetNamer

func (a *UserRole) SetNamer(namer func(string) string) factory.Model

func (*UserRole) SetParam

func (a *UserRole) SetParam(param *factory.Param) factory.Model

func (*UserRole) Short_

func (a *UserRole) Short_() string

func (*UserRole) Struct_

func (a *UserRole) Struct_() string

func (*UserRole) Trans

func (a *UserRole) Trans() *factory.Transaction

func (*UserRole) Upsert

func (a *UserRole) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*UserRole) Use

func (a *UserRole) Use(trans *factory.Transaction) factory.Model

func (*UserRole) Validate

func (a *UserRole) Validate(field string, value interface{}) error

type UserU2f

type UserU2f struct {
	Id      uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Uid     uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	Token   string `db:"token" bson:"token" comment:"签名" json:"token" xml:"token"`
	Type    string `db:"type" bson:"type" comment:"类型" json:"type" xml:"type"`
	Extra   string `db:"extra" bson:"extra" comment:"扩展设置" json:"extra" xml:"extra"`
	Created uint   `db:"created" bson:"created" comment:"绑定时间" json:"created" xml:"created"`
	// contains filtered or unexported fields
}

UserU2f 两步验证

func (*UserU2f) Add

func (a *UserU2f) Add() (pk interface{}, err error)

func (*UserU2f) AsKV

func (a *UserU2f) AsKV(keyField string, valueField string, inputRows ...[]*UserU2f) map[string]interface{}

func (*UserU2f) AsMap

func (a *UserU2f) AsMap() map[string]interface{}

func (*UserU2f) AsRow

func (a *UserU2f) AsRow() map[string]interface{}

func (*UserU2f) BatchValidate

func (a *UserU2f) BatchValidate(kvset map[string]interface{}) error

func (*UserU2f) CPAFrom

func (a *UserU2f) CPAFrom(source factory.Model) factory.Model

func (*UserU2f) Context

func (a *UserU2f) Context() echo.Context

func (*UserU2f) Count

func (a *UserU2f) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*UserU2f) Delete

func (a *UserU2f) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*UserU2f) Edit

func (a *UserU2f) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*UserU2f) EventOFF

func (a *UserU2f) EventOFF(off ...bool) factory.Model

func (*UserU2f) EventON

func (a *UserU2f) EventON(on ...bool) factory.Model

func (*UserU2f) FromRow

func (a *UserU2f) FromRow(row map[string]interface{})

func (*UserU2f) Get

func (a *UserU2f) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) GroupBy

func (a *UserU2f) GroupBy(keyField string, inputRows ...[]*UserU2f) map[string][]*UserU2f

func (*UserU2f) InitObjects

func (a *UserU2f) InitObjects() *[]*UserU2f

func (*UserU2f) KeyBy

func (a *UserU2f) KeyBy(keyField string, inputRows ...[]*UserU2f) map[string]*UserU2f

func (*UserU2f) List

func (a *UserU2f) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*UserU2f) ListByOffset

func (a *UserU2f) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*UserU2f) Name_

func (a *UserU2f) Name_() string

func (*UserU2f) Namer

func (a *UserU2f) Namer() func(string) string

func (*UserU2f) New

func (a *UserU2f) New(structName string, connID ...int) factory.Model

func (*UserU2f) NewObjects

func (a *UserU2f) NewObjects() factory.Ranger

func (*UserU2f) NewParam

func (a *UserU2f) NewParam() *factory.Param

func (*UserU2f) Objects

func (a *UserU2f) Objects() []*UserU2f

func (*UserU2f) Param

func (a *UserU2f) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*UserU2f) Reset

func (a *UserU2f) Reset() *UserU2f

func (*UserU2f) Set

func (a *UserU2f) Set(key interface{}, value ...interface{})

func (*UserU2f) SetConnID

func (a *UserU2f) SetConnID(connID int) factory.Model

func (*UserU2f) SetContext

func (a *UserU2f) SetContext(ctx echo.Context) factory.Model

func (*UserU2f) SetField

func (a *UserU2f) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*UserU2f) SetFields

func (a *UserU2f) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*UserU2f) SetNamer

func (a *UserU2f) SetNamer(namer func(string) string) factory.Model

func (*UserU2f) SetParam

func (a *UserU2f) SetParam(param *factory.Param) factory.Model

func (*UserU2f) Short_

func (a *UserU2f) Short_() string

func (*UserU2f) Struct_

func (a *UserU2f) Struct_() string

func (*UserU2f) Trans

func (a *UserU2f) Trans() *factory.Transaction

func (*UserU2f) Upsert

func (a *UserU2f) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*UserU2f) Use

func (a *UserU2f) Use(trans *factory.Transaction) factory.Model

func (*UserU2f) Validate

func (a *UserU2f) Validate(field string, value interface{}) error

type Vhost

type Vhost 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
}

Vhost 虚拟主机

func (*Vhost) Add

func (a *Vhost) Add() (pk interface{}, err error)

func (*Vhost) AsKV

func (a *Vhost) AsKV(keyField string, valueField string, inputRows ...[]*Vhost) map[string]interface{}

func (*Vhost) AsMap

func (a *Vhost) AsMap() map[string]interface{}

func (*Vhost) AsRow

func (a *Vhost) AsRow() map[string]interface{}

func (*Vhost) BatchValidate

func (a *Vhost) BatchValidate(kvset map[string]interface{}) error

func (*Vhost) CPAFrom

func (a *Vhost) CPAFrom(source factory.Model) factory.Model

func (*Vhost) Context

func (a *Vhost) Context() echo.Context

func (*Vhost) Count

func (a *Vhost) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*Vhost) Delete

func (a *Vhost) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*Vhost) Edit

func (a *Vhost) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*Vhost) EventOFF

func (a *Vhost) EventOFF(off ...bool) factory.Model

func (*Vhost) EventON

func (a *Vhost) EventON(on ...bool) factory.Model

func (*Vhost) FromRow

func (a *Vhost) FromRow(row map[string]interface{})

func (*Vhost) Get

func (a *Vhost) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) GroupBy

func (a *Vhost) GroupBy(keyField string, inputRows ...[]*Vhost) map[string][]*Vhost

func (*Vhost) InitObjects

func (a *Vhost) InitObjects() *[]*Vhost

func (*Vhost) KeyBy

func (a *Vhost) KeyBy(keyField string, inputRows ...[]*Vhost) map[string]*Vhost

func (*Vhost) List

func (a *Vhost) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*Vhost) ListByOffset

func (a *Vhost) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*Vhost) Name_

func (a *Vhost) Name_() string

func (*Vhost) Namer

func (a *Vhost) Namer() func(string) string

func (*Vhost) New

func (a *Vhost) New(structName string, connID ...int) factory.Model

func (*Vhost) NewObjects

func (a *Vhost) NewObjects() factory.Ranger

func (*Vhost) NewParam

func (a *Vhost) NewParam() *factory.Param

func (*Vhost) Objects

func (a *Vhost) Objects() []*Vhost

func (*Vhost) Param

func (a *Vhost) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*Vhost) Reset

func (a *Vhost) Reset() *Vhost

func (*Vhost) Set

func (a *Vhost) Set(key interface{}, value ...interface{})

func (*Vhost) SetConnID

func (a *Vhost) SetConnID(connID int) factory.Model

func (*Vhost) SetContext

func (a *Vhost) SetContext(ctx echo.Context) factory.Model

func (*Vhost) SetField

func (a *Vhost) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*Vhost) SetFields

func (a *Vhost) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*Vhost) SetNamer

func (a *Vhost) SetNamer(namer func(string) string) factory.Model

func (*Vhost) SetParam

func (a *Vhost) SetParam(param *factory.Param) factory.Model

func (*Vhost) Short_

func (a *Vhost) Short_() string

func (*Vhost) Struct_

func (a *Vhost) Struct_() string

func (*Vhost) Trans

func (a *Vhost) Trans() *factory.Transaction

func (*Vhost) Upsert

func (a *Vhost) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*Vhost) Use

func (a *Vhost) Use(trans *factory.Transaction) factory.Model

func (*Vhost) Validate

func (a *Vhost) Validate(field string, value interface{}) error

type VhostGroup

type VhostGroup 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
}

VhostGroup 虚拟主机组

func (*VhostGroup) Add

func (a *VhostGroup) Add() (pk interface{}, err error)

func (*VhostGroup) AsKV

func (a *VhostGroup) AsKV(keyField string, valueField string, inputRows ...[]*VhostGroup) map[string]interface{}

func (*VhostGroup) AsMap

func (a *VhostGroup) AsMap() map[string]interface{}

func (*VhostGroup) AsRow

func (a *VhostGroup) AsRow() map[string]interface{}

func (*VhostGroup) BatchValidate

func (a *VhostGroup) BatchValidate(kvset map[string]interface{}) error

func (*VhostGroup) CPAFrom

func (a *VhostGroup) CPAFrom(source factory.Model) factory.Model

func (*VhostGroup) Context

func (a *VhostGroup) Context() echo.Context

func (*VhostGroup) Count

func (a *VhostGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*VhostGroup) Delete

func (a *VhostGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*VhostGroup) Edit

func (a *VhostGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*VhostGroup) EventOFF

func (a *VhostGroup) EventOFF(off ...bool) factory.Model

func (*VhostGroup) EventON

func (a *VhostGroup) EventON(on ...bool) factory.Model

func (*VhostGroup) FromRow

func (a *VhostGroup) FromRow(row map[string]interface{})

func (*VhostGroup) Get

func (a *VhostGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*VhostGroup) GroupBy

func (a *VhostGroup) GroupBy(keyField string, inputRows ...[]*VhostGroup) map[string][]*VhostGroup

func (*VhostGroup) InitObjects

func (a *VhostGroup) InitObjects() *[]*VhostGroup

func (*VhostGroup) KeyBy

func (a *VhostGroup) KeyBy(keyField string, inputRows ...[]*VhostGroup) map[string]*VhostGroup

func (*VhostGroup) List

func (a *VhostGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*VhostGroup) ListByOffset

func (a *VhostGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*VhostGroup) Name_

func (a *VhostGroup) Name_() string

func (*VhostGroup) Namer

func (a *VhostGroup) Namer() func(string) string

func (*VhostGroup) New

func (a *VhostGroup) New(structName string, connID ...int) factory.Model

func (*VhostGroup) NewObjects

func (a *VhostGroup) NewObjects() factory.Ranger

func (*VhostGroup) NewParam

func (a *VhostGroup) NewParam() *factory.Param

func (*VhostGroup) Objects

func (a *VhostGroup) Objects() []*VhostGroup

func (*VhostGroup) Param

func (a *VhostGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*VhostGroup) Reset

func (a *VhostGroup) Reset() *VhostGroup

func (*VhostGroup) Set

func (a *VhostGroup) Set(key interface{}, value ...interface{})

func (*VhostGroup) SetConnID

func (a *VhostGroup) SetConnID(connID int) factory.Model

func (*VhostGroup) SetContext

func (a *VhostGroup) SetContext(ctx echo.Context) factory.Model

func (*VhostGroup) SetField

func (a *VhostGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*VhostGroup) SetFields

func (a *VhostGroup) SetFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*VhostGroup) SetNamer

func (a *VhostGroup) SetNamer(namer func(string) string) factory.Model

func (*VhostGroup) SetParam

func (a *VhostGroup) SetParam(param *factory.Param) factory.Model

func (*VhostGroup) Short_

func (a *VhostGroup) Short_() string

func (*VhostGroup) Struct_

func (a *VhostGroup) Struct_() string

func (*VhostGroup) Trans

func (a *VhostGroup) Trans() *factory.Transaction

func (*VhostGroup) Upsert

func (a *VhostGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*VhostGroup) Use

func (a *VhostGroup) Use(trans *factory.Transaction) factory.Model

func (*VhostGroup) Validate

func (a *VhostGroup) Validate(field string, value interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL