dbschema

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: AGPL-3.0 Imports: 4 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
}

func (*AccessLog) Add

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

func (*AccessLog) AsKV

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

func (*AccessLog) AsMap

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

func (*AccessLog) AsRow

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

func (*AccessLog) BatchValidate

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

func (*AccessLog) Count

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

func (*AccessLog) Delete

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

func (*AccessLog) Edit

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

func (*AccessLog) Get

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

func (*AccessLog) GroupBy

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

func (*AccessLog) KeyBy

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

func (*AccessLog) List

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

func (*AccessLog) ListByOffset

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

func (*AccessLog) Name_

func (this *AccessLog) Name_() string

func (*AccessLog) New

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

func (*AccessLog) NewObjects

func (this *AccessLog) NewObjects() *[]*AccessLog

func (*AccessLog) NewParam

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

func (*AccessLog) Objects

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

func (*AccessLog) Param

func (this *AccessLog) Param() *factory.Param

func (*AccessLog) Reset

func (this *AccessLog) Reset() *AccessLog

func (*AccessLog) SetConnID

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

func (*AccessLog) SetField

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

func (*AccessLog) SetFields

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

func (*AccessLog) SetNamer

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

func (*AccessLog) SetParam

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

func (*AccessLog) Setter

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

func (*AccessLog) Short_

func (this *AccessLog) Short_() string

func (*AccessLog) Struct_

func (this *AccessLog) Struct_() string

func (*AccessLog) Trans

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

func (*AccessLog) Upsert

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

func (*AccessLog) Use

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

func (*AccessLog) Validate

func (this *AccessLog) 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
}

func (*CodeInvitation) Add

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

func (*CodeInvitation) AsKV

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

func (*CodeInvitation) AsMap

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

func (*CodeInvitation) AsRow

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

func (*CodeInvitation) BatchValidate

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

func (*CodeInvitation) Count

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

func (*CodeInvitation) Delete

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

func (*CodeInvitation) Edit

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

func (*CodeInvitation) Get

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

func (*CodeInvitation) GroupBy

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

func (*CodeInvitation) KeyBy

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

func (*CodeInvitation) List

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

func (*CodeInvitation) ListByOffset

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

func (*CodeInvitation) Name_

func (this *CodeInvitation) Name_() string

func (*CodeInvitation) New

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

func (*CodeInvitation) NewObjects

func (this *CodeInvitation) NewObjects() *[]*CodeInvitation

func (*CodeInvitation) NewParam

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

func (*CodeInvitation) Objects

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

func (*CodeInvitation) Param

func (this *CodeInvitation) Param() *factory.Param

func (*CodeInvitation) Reset

func (this *CodeInvitation) Reset() *CodeInvitation

func (*CodeInvitation) SetConnID

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

func (*CodeInvitation) SetField

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

func (*CodeInvitation) SetFields

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

func (*CodeInvitation) SetNamer

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

func (*CodeInvitation) SetParam

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

func (*CodeInvitation) Setter

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

func (*CodeInvitation) Short_

func (this *CodeInvitation) Short_() string

func (*CodeInvitation) Struct_

func (this *CodeInvitation) Struct_() string

func (*CodeInvitation) Trans

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

func (*CodeInvitation) Upsert

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

func (*CodeInvitation) Use

func (this *CodeInvitation) Use(trans *factory.Transaction) factory.Model

func (*CodeInvitation) Validate

func (this *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
}

func (*CodeVerification) Add

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

func (*CodeVerification) AsKV

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

func (*CodeVerification) AsMap

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

func (*CodeVerification) AsRow

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

func (*CodeVerification) BatchValidate

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

func (*CodeVerification) Count

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

func (*CodeVerification) Delete

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

func (*CodeVerification) Edit

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

func (*CodeVerification) Get

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

func (*CodeVerification) GroupBy

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

func (*CodeVerification) KeyBy

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

func (*CodeVerification) List

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

func (*CodeVerification) ListByOffset

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

func (*CodeVerification) Name_

func (this *CodeVerification) Name_() string

func (*CodeVerification) New

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

func (*CodeVerification) NewObjects

func (this *CodeVerification) NewObjects() *[]*CodeVerification

func (*CodeVerification) NewParam

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

func (*CodeVerification) Objects

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

func (*CodeVerification) Param

func (this *CodeVerification) Param() *factory.Param

func (*CodeVerification) Reset

func (this *CodeVerification) Reset() *CodeVerification

func (*CodeVerification) SetConnID

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

func (*CodeVerification) SetField

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

func (*CodeVerification) SetFields

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

func (*CodeVerification) SetNamer

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

func (*CodeVerification) SetParam

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

func (*CodeVerification) Setter

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

func (*CodeVerification) Short_

func (this *CodeVerification) Short_() string

func (*CodeVerification) Struct_

func (this *CodeVerification) Struct_() string

func (*CodeVerification) Trans

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

func (*CodeVerification) Upsert

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

func (*CodeVerification) Use

func (this *CodeVerification) Use(trans *factory.Transaction) factory.Model

func (*CodeVerification) Validate

func (this *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
}

func (*CollectorExport) Add

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

func (*CollectorExport) AsKV

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

func (*CollectorExport) AsMap

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

func (*CollectorExport) AsRow

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

func (*CollectorExport) BatchValidate

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

func (*CollectorExport) Count

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

func (*CollectorExport) Delete

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

func (*CollectorExport) Edit

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

func (*CollectorExport) Get

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

func (*CollectorExport) GroupBy

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

func (*CollectorExport) KeyBy

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

func (*CollectorExport) List

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

func (*CollectorExport) ListByOffset

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

func (*CollectorExport) Name_

func (this *CollectorExport) Name_() string

func (*CollectorExport) New

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

func (*CollectorExport) NewObjects

func (this *CollectorExport) NewObjects() *[]*CollectorExport

func (*CollectorExport) NewParam

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

func (*CollectorExport) Objects

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

func (*CollectorExport) Param

func (this *CollectorExport) Param() *factory.Param

func (*CollectorExport) Reset

func (this *CollectorExport) Reset() *CollectorExport

func (*CollectorExport) SetConnID

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

func (*CollectorExport) SetField

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

func (*CollectorExport) SetFields

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

func (*CollectorExport) SetNamer

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

func (*CollectorExport) SetParam

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

func (*CollectorExport) Setter

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

func (*CollectorExport) Short_

func (this *CollectorExport) Short_() string

func (*CollectorExport) Struct_

func (this *CollectorExport) Struct_() string

func (*CollectorExport) Trans

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

func (*CollectorExport) Upsert

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

func (*CollectorExport) Use

func (this *CollectorExport) Use(trans *factory.Transaction) factory.Model

func (*CollectorExport) Validate

func (this *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
}

func (*CollectorExportLog) Add

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

func (*CollectorExportLog) AsKV

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

func (*CollectorExportLog) AsMap

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

func (*CollectorExportLog) AsRow

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

func (*CollectorExportLog) BatchValidate

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

func (*CollectorExportLog) Count

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

func (*CollectorExportLog) Delete

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

func (*CollectorExportLog) Edit

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

func (*CollectorExportLog) Get

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

func (*CollectorExportLog) GroupBy

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

func (*CollectorExportLog) KeyBy

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

func (*CollectorExportLog) List

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

func (*CollectorExportLog) ListByOffset

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

func (*CollectorExportLog) Name_

func (this *CollectorExportLog) Name_() string

func (*CollectorExportLog) New

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

func (*CollectorExportLog) NewObjects

func (this *CollectorExportLog) NewObjects() *[]*CollectorExportLog

func (*CollectorExportLog) NewParam

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

func (*CollectorExportLog) Objects

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

func (*CollectorExportLog) Param

func (this *CollectorExportLog) Param() *factory.Param

func (*CollectorExportLog) Reset

func (this *CollectorExportLog) Reset() *CollectorExportLog

func (*CollectorExportLog) SetConnID

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

func (*CollectorExportLog) SetField

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

func (*CollectorExportLog) SetFields

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

func (*CollectorExportLog) SetNamer

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

func (*CollectorExportLog) SetParam

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

func (*CollectorExportLog) Setter

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

func (*CollectorExportLog) Short_

func (this *CollectorExportLog) Short_() string

func (*CollectorExportLog) Struct_

func (this *CollectorExportLog) Struct_() string

func (*CollectorExportLog) Trans

func (this *CollectorExportLog) Trans() *factory.Transaction

func (*CollectorExportLog) Upsert

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

func (*CollectorExportLog) Use

func (*CollectorExportLog) Validate

func (this *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
}

func (*CollectorGroup) Add

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

func (*CollectorGroup) AsKV

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

func (*CollectorGroup) AsMap

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

func (*CollectorGroup) AsRow

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

func (*CollectorGroup) BatchValidate

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

func (*CollectorGroup) Count

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

func (*CollectorGroup) Delete

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

func (*CollectorGroup) Edit

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

func (*CollectorGroup) Get

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

func (*CollectorGroup) GroupBy

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

func (*CollectorGroup) KeyBy

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

func (*CollectorGroup) List

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

func (*CollectorGroup) ListByOffset

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

func (*CollectorGroup) Name_

func (this *CollectorGroup) Name_() string

func (*CollectorGroup) New

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

func (*CollectorGroup) NewObjects

func (this *CollectorGroup) NewObjects() *[]*CollectorGroup

func (*CollectorGroup) NewParam

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

func (*CollectorGroup) Objects

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

func (*CollectorGroup) Param

func (this *CollectorGroup) Param() *factory.Param

func (*CollectorGroup) Reset

func (this *CollectorGroup) Reset() *CollectorGroup

func (*CollectorGroup) SetConnID

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

func (*CollectorGroup) SetField

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

func (*CollectorGroup) SetFields

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

func (*CollectorGroup) SetNamer

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

func (*CollectorGroup) SetParam

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

func (*CollectorGroup) Setter

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

func (*CollectorGroup) Short_

func (this *CollectorGroup) Short_() string

func (*CollectorGroup) Struct_

func (this *CollectorGroup) Struct_() string

func (*CollectorGroup) Trans

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

func (*CollectorGroup) Upsert

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

func (*CollectorGroup) Use

func (this *CollectorGroup) Use(trans *factory.Transaction) factory.Model

func (*CollectorGroup) Validate

func (this *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
}

func (*CollectorHistory) Add

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

func (*CollectorHistory) AsKV

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

func (*CollectorHistory) AsMap

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

func (*CollectorHistory) AsRow

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

func (*CollectorHistory) BatchValidate

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

func (*CollectorHistory) Count

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

func (*CollectorHistory) Delete

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

func (*CollectorHistory) Edit

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

func (*CollectorHistory) Get

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

func (*CollectorHistory) GroupBy

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

func (*CollectorHistory) KeyBy

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

func (*CollectorHistory) List

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

func (*CollectorHistory) ListByOffset

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

func (*CollectorHistory) Name_

func (this *CollectorHistory) Name_() string

func (*CollectorHistory) New

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

func (*CollectorHistory) NewObjects

func (this *CollectorHistory) NewObjects() *[]*CollectorHistory

func (*CollectorHistory) NewParam

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

func (*CollectorHistory) Objects

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

func (*CollectorHistory) Param

func (this *CollectorHistory) Param() *factory.Param

func (*CollectorHistory) Reset

func (this *CollectorHistory) Reset() *CollectorHistory

func (*CollectorHistory) SetConnID

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

func (*CollectorHistory) SetField

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

func (*CollectorHistory) SetFields

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

func (*CollectorHistory) SetNamer

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

func (*CollectorHistory) SetParam

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

func (*CollectorHistory) Setter

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

func (*CollectorHistory) Short_

func (this *CollectorHistory) Short_() string

func (*CollectorHistory) Struct_

func (this *CollectorHistory) Struct_() string

func (*CollectorHistory) Trans

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

func (*CollectorHistory) Upsert

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

func (*CollectorHistory) Use

func (this *CollectorHistory) Use(trans *factory.Transaction) factory.Model

func (*CollectorHistory) Validate

func (this *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
}

func (*CollectorPage) Add

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

func (*CollectorPage) AsKV

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

func (*CollectorPage) AsMap

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

func (*CollectorPage) AsRow

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

func (*CollectorPage) BatchValidate

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

func (*CollectorPage) Count

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

func (*CollectorPage) Delete

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

func (*CollectorPage) Edit

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

func (*CollectorPage) Get

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

func (*CollectorPage) GroupBy

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

func (*CollectorPage) KeyBy

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

func (*CollectorPage) List

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

func (*CollectorPage) ListByOffset

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

func (*CollectorPage) Name_

func (this *CollectorPage) Name_() string

func (*CollectorPage) New

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

func (*CollectorPage) NewObjects

func (this *CollectorPage) NewObjects() *[]*CollectorPage

func (*CollectorPage) NewParam

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

func (*CollectorPage) Objects

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

func (*CollectorPage) Param

func (this *CollectorPage) Param() *factory.Param

func (*CollectorPage) Reset

func (this *CollectorPage) Reset() *CollectorPage

func (*CollectorPage) SetConnID

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

func (*CollectorPage) SetField

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

func (*CollectorPage) SetFields

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

func (*CollectorPage) SetNamer

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

func (*CollectorPage) SetParam

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

func (*CollectorPage) Setter

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

func (*CollectorPage) Short_

func (this *CollectorPage) Short_() string

func (*CollectorPage) Struct_

func (this *CollectorPage) Struct_() string

func (*CollectorPage) Trans

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

func (*CollectorPage) Upsert

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

func (*CollectorPage) Use

func (this *CollectorPage) Use(trans *factory.Transaction) factory.Model

func (*CollectorPage) Validate

func (this *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
}

func (*CollectorRule) Add

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

func (*CollectorRule) AsKV

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

func (*CollectorRule) AsMap

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

func (*CollectorRule) AsRow

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

func (*CollectorRule) BatchValidate

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

func (*CollectorRule) Count

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

func (*CollectorRule) Delete

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

func (*CollectorRule) Edit

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

func (*CollectorRule) Get

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

func (*CollectorRule) GroupBy

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

func (*CollectorRule) KeyBy

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

func (*CollectorRule) List

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

func (*CollectorRule) ListByOffset

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

func (*CollectorRule) Name_

func (this *CollectorRule) Name_() string

func (*CollectorRule) New

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

func (*CollectorRule) NewObjects

func (this *CollectorRule) NewObjects() *[]*CollectorRule

func (*CollectorRule) NewParam

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

func (*CollectorRule) Objects

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

func (*CollectorRule) Param

func (this *CollectorRule) Param() *factory.Param

func (*CollectorRule) Reset

func (this *CollectorRule) Reset() *CollectorRule

func (*CollectorRule) SetConnID

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

func (*CollectorRule) SetField

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

func (*CollectorRule) SetFields

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

func (*CollectorRule) SetNamer

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

func (*CollectorRule) SetParam

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

func (*CollectorRule) Setter

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

func (*CollectorRule) Short_

func (this *CollectorRule) Short_() string

func (*CollectorRule) Struct_

func (this *CollectorRule) Struct_() string

func (*CollectorRule) Trans

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

func (*CollectorRule) Upsert

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

func (*CollectorRule) Use

func (this *CollectorRule) Use(trans *factory.Transaction) factory.Model

func (*CollectorRule) Validate

func (this *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
}

func (*Command) Add

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

func (*Command) AsKV

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

func (*Command) AsMap

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

func (*Command) AsRow

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

func (*Command) BatchValidate

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

func (*Command) Count

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

func (*Command) Delete

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

func (*Command) Edit

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

func (*Command) Get

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

func (*Command) GroupBy

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

func (*Command) KeyBy

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

func (*Command) List

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

func (*Command) ListByOffset

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

func (*Command) Name_

func (this *Command) Name_() string

func (*Command) New

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

func (*Command) NewObjects

func (this *Command) NewObjects() *[]*Command

func (*Command) NewParam

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

func (*Command) Objects

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

func (*Command) Param

func (this *Command) Param() *factory.Param

func (*Command) Reset

func (this *Command) Reset() *Command

func (*Command) SetConnID

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

func (*Command) SetField

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

func (*Command) SetFields

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

func (*Command) SetNamer

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

func (*Command) SetParam

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

func (*Command) Setter

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

func (*Command) Short_

func (this *Command) Short_() string

func (*Command) Struct_

func (this *Command) Struct_() string

func (*Command) Trans

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

func (*Command) Upsert

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

func (*Command) Use

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

func (*Command) Validate

func (this *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
}

func (*Config) Add

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

func (*Config) AsKV

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

func (*Config) AsMap

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

func (*Config) AsRow

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

func (*Config) BatchValidate

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

func (*Config) Count

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

func (*Config) Delete

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

func (*Config) Edit

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

func (*Config) Get

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

func (*Config) GroupBy

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

func (*Config) KeyBy

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

func (*Config) List

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

func (*Config) ListByOffset

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

func (*Config) Name_

func (this *Config) Name_() string

func (*Config) New

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

func (*Config) NewObjects

func (this *Config) NewObjects() *[]*Config

func (*Config) NewParam

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

func (*Config) Objects

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

func (*Config) Param

func (this *Config) Param() *factory.Param

func (*Config) Reset

func (this *Config) Reset() *Config

func (*Config) SetConnID

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

func (*Config) SetField

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

func (*Config) SetFields

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

func (*Config) SetNamer

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

func (*Config) SetParam

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

func (*Config) Setter

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

func (*Config) Short_

func (this *Config) Short_() string

func (*Config) Struct_

func (this *Config) Struct_() string

func (*Config) Trans

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

func (*Config) Upsert

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

func (*Config) Use

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

func (*Config) Validate

func (this *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
}

func (*DbAccount) Add added in v1.3.0

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

func (*DbAccount) AsKV

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

func (*DbAccount) AsMap

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

func (*DbAccount) AsRow

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

func (*DbAccount) BatchValidate

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

func (*DbAccount) Count added in v1.3.0

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

func (*DbAccount) Delete added in v1.3.0

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

func (*DbAccount) Edit added in v1.3.0

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

func (*DbAccount) Get added in v1.3.0

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

func (*DbAccount) GroupBy

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

func (*DbAccount) KeyBy

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

func (*DbAccount) List added in v1.3.0

func (this *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 (this *DbAccount) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*DbAccount) Name_

func (this *DbAccount) Name_() string

func (*DbAccount) New

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

func (*DbAccount) NewObjects added in v1.3.0

func (this *DbAccount) NewObjects() *[]*DbAccount

func (*DbAccount) NewParam added in v1.3.0

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

func (*DbAccount) Objects added in v1.3.0

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

func (*DbAccount) Param added in v1.3.0

func (this *DbAccount) Param() *factory.Param

func (*DbAccount) Reset

func (this *DbAccount) Reset() *DbAccount

func (*DbAccount) SetConnID

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

func (*DbAccount) SetField

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

func (*DbAccount) SetFields

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

func (*DbAccount) SetNamer

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

func (*DbAccount) SetParam added in v1.3.0

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

func (*DbAccount) Setter

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

func (*DbAccount) Short_

func (this *DbAccount) Short_() string

func (*DbAccount) Struct_

func (this *DbAccount) Struct_() string

func (*DbAccount) Trans added in v1.3.0

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

func (*DbAccount) Upsert added in v1.3.0

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

func (*DbAccount) Use added in v1.3.0

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

func (*DbAccount) Validate

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

type DbSync

type DbSync struct {
	Id             uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	DsnSource      string `db:"dsn_source" bson:"dsn_source" comment:"同步源" json:"dsn_source" xml:"dsn_source"`
	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
}

func (*DbSync) Add

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

func (*DbSync) AsKV

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

func (*DbSync) AsMap

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

func (*DbSync) AsRow

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

func (*DbSync) BatchValidate

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

func (*DbSync) Count

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

func (*DbSync) Delete

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

func (*DbSync) Edit

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

func (*DbSync) Get

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

func (*DbSync) GroupBy

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

func (*DbSync) KeyBy

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

func (*DbSync) List

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

func (*DbSync) ListByOffset

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

func (*DbSync) Name_

func (this *DbSync) Name_() string

func (*DbSync) New

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

func (*DbSync) NewObjects

func (this *DbSync) NewObjects() *[]*DbSync

func (*DbSync) NewParam

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

func (*DbSync) Objects

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

func (*DbSync) Param

func (this *DbSync) Param() *factory.Param

func (*DbSync) Reset

func (this *DbSync) Reset() *DbSync

func (*DbSync) SetConnID

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

func (*DbSync) SetField

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

func (*DbSync) SetFields

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

func (*DbSync) SetNamer

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

func (*DbSync) SetParam

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

func (*DbSync) Setter

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

func (*DbSync) Short_

func (this *DbSync) Short_() string

func (*DbSync) Struct_

func (this *DbSync) Struct_() string

func (*DbSync) Trans

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

func (*DbSync) Upsert

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

func (*DbSync) Use

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

func (*DbSync) Validate

func (this *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
}

func (*DbSyncLog) Add

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

func (*DbSyncLog) AsKV

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

func (*DbSyncLog) AsMap

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

func (*DbSyncLog) AsRow

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

func (*DbSyncLog) BatchValidate

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

func (*DbSyncLog) Count

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

func (*DbSyncLog) Delete

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

func (*DbSyncLog) Edit

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

func (*DbSyncLog) Get

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

func (*DbSyncLog) GroupBy

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

func (*DbSyncLog) KeyBy

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

func (*DbSyncLog) List

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

func (*DbSyncLog) ListByOffset

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

func (*DbSyncLog) Name_

func (this *DbSyncLog) Name_() string

func (*DbSyncLog) New

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

func (*DbSyncLog) NewObjects

func (this *DbSyncLog) NewObjects() *[]*DbSyncLog

func (*DbSyncLog) NewParam

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

func (*DbSyncLog) Objects

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

func (*DbSyncLog) Param

func (this *DbSyncLog) Param() *factory.Param

func (*DbSyncLog) Reset

func (this *DbSyncLog) Reset() *DbSyncLog

func (*DbSyncLog) SetConnID

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

func (*DbSyncLog) SetField

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

func (*DbSyncLog) SetFields

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

func (*DbSyncLog) SetNamer

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

func (*DbSyncLog) SetParam

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

func (*DbSyncLog) Setter

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

func (*DbSyncLog) Short_

func (this *DbSyncLog) Short_() string

func (*DbSyncLog) Struct_

func (this *DbSyncLog) Struct_() string

func (*DbSyncLog) Trans

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

func (*DbSyncLog) Upsert

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

func (*DbSyncLog) Use

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

func (*DbSyncLog) Validate

func (this *DbSyncLog) 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
}

func (*ForeverProcess) Add

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

func (*ForeverProcess) AsKV

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

func (*ForeverProcess) AsMap

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

func (*ForeverProcess) AsRow

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

func (*ForeverProcess) BatchValidate

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

func (*ForeverProcess) Count

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

func (*ForeverProcess) Delete

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

func (*ForeverProcess) Edit

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

func (*ForeverProcess) Get

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

func (*ForeverProcess) GroupBy

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

func (*ForeverProcess) KeyBy

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

func (*ForeverProcess) List

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

func (*ForeverProcess) ListByOffset

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

func (*ForeverProcess) Name_

func (this *ForeverProcess) Name_() string

func (*ForeverProcess) New

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

func (*ForeverProcess) NewObjects

func (this *ForeverProcess) NewObjects() *[]*ForeverProcess

func (*ForeverProcess) NewParam

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

func (*ForeverProcess) Objects

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

func (*ForeverProcess) Param

func (this *ForeverProcess) Param() *factory.Param

func (*ForeverProcess) Reset

func (this *ForeverProcess) Reset() *ForeverProcess

func (*ForeverProcess) SetConnID

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

func (*ForeverProcess) SetField

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

func (*ForeverProcess) SetFields

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

func (*ForeverProcess) SetNamer

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

func (*ForeverProcess) SetParam

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

func (*ForeverProcess) Setter

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

func (*ForeverProcess) Short_

func (this *ForeverProcess) Short_() string

func (*ForeverProcess) Struct_

func (this *ForeverProcess) Struct_() string

func (*ForeverProcess) Trans

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

func (*ForeverProcess) Upsert

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

func (*ForeverProcess) Use

func (this *ForeverProcess) Use(trans *factory.Transaction) factory.Model

func (*ForeverProcess) Validate

func (this *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
}

func (*FrpClient) Add

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

func (*FrpClient) AsKV

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

func (*FrpClient) AsMap

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

func (*FrpClient) AsRow

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

func (*FrpClient) BatchValidate

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

func (*FrpClient) Count

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

func (*FrpClient) Delete

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

func (*FrpClient) Edit

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

func (*FrpClient) Get

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

func (*FrpClient) GroupBy

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

func (*FrpClient) KeyBy

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

func (*FrpClient) List

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

func (*FrpClient) ListByOffset

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

func (*FrpClient) Name_

func (this *FrpClient) Name_() string

func (*FrpClient) New

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

func (*FrpClient) NewObjects

func (this *FrpClient) NewObjects() *[]*FrpClient

func (*FrpClient) NewParam

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

func (*FrpClient) Objects

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

func (*FrpClient) Param

func (this *FrpClient) Param() *factory.Param

func (*FrpClient) Reset

func (this *FrpClient) Reset() *FrpClient

func (*FrpClient) SetConnID

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

func (*FrpClient) SetField

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

func (*FrpClient) SetFields

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

func (*FrpClient) SetNamer

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

func (*FrpClient) SetParam

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

func (*FrpClient) Setter

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

func (*FrpClient) Short_

func (this *FrpClient) Short_() string

func (*FrpClient) Struct_

func (this *FrpClient) Struct_() string

func (*FrpClient) Trans

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

func (*FrpClient) Upsert

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

func (*FrpClient) Use

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

func (*FrpClient) Validate

func (this *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
}

func (*FrpGroup) Add

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

func (*FrpGroup) AsKV

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

func (*FrpGroup) AsMap

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

func (*FrpGroup) AsRow

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

func (*FrpGroup) BatchValidate

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

func (*FrpGroup) Count

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

func (*FrpGroup) Delete

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

func (*FrpGroup) Edit

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

func (*FrpGroup) Get

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

func (*FrpGroup) GroupBy

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

func (*FrpGroup) KeyBy

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

func (*FrpGroup) List

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

func (*FrpGroup) ListByOffset

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

func (*FrpGroup) Name_

func (this *FrpGroup) Name_() string

func (*FrpGroup) New

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

func (*FrpGroup) NewObjects

func (this *FrpGroup) NewObjects() *[]*FrpGroup

func (*FrpGroup) NewParam

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

func (*FrpGroup) Objects

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

func (*FrpGroup) Param

func (this *FrpGroup) Param() *factory.Param

func (*FrpGroup) Reset

func (this *FrpGroup) Reset() *FrpGroup

func (*FrpGroup) SetConnID

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

func (*FrpGroup) SetField

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

func (*FrpGroup) SetFields

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

func (*FrpGroup) SetNamer

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

func (*FrpGroup) SetParam

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

func (*FrpGroup) Setter

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

func (*FrpGroup) Short_

func (this *FrpGroup) Short_() string

func (*FrpGroup) Struct_

func (this *FrpGroup) Struct_() string

func (*FrpGroup) Trans

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

func (*FrpGroup) Upsert

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

func (*FrpGroup) Use

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

func (*FrpGroup) Validate

func (this *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
}

func (*FrpServer) Add

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

func (*FrpServer) AsKV

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

func (*FrpServer) AsMap

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

func (*FrpServer) AsRow

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

func (*FrpServer) BatchValidate

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

func (*FrpServer) Count

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

func (*FrpServer) Delete

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

func (*FrpServer) Edit

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

func (*FrpServer) Get

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

func (*FrpServer) GroupBy

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

func (*FrpServer) KeyBy

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

func (*FrpServer) List

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

func (*FrpServer) ListByOffset

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

func (*FrpServer) Name_

func (this *FrpServer) Name_() string

func (*FrpServer) New

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

func (*FrpServer) NewObjects

func (this *FrpServer) NewObjects() *[]*FrpServer

func (*FrpServer) NewParam

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

func (*FrpServer) Objects

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

func (*FrpServer) Param

func (this *FrpServer) Param() *factory.Param

func (*FrpServer) Reset

func (this *FrpServer) Reset() *FrpServer

func (*FrpServer) SetConnID

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

func (*FrpServer) SetField

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

func (*FrpServer) SetFields

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

func (*FrpServer) SetNamer

func (this *FrpServer) SetNamer(namer func(string) string) factory.Model

func (*FrpServer) SetParam

func (this *FrpServer) SetParam(param *factory.Param) factory.Model

func (*FrpServer) Setter

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

func (*FrpServer) Short_

func (this *FrpServer) Short_() string

func (*FrpServer) Struct_

func (this *FrpServer) Struct_() string

func (*FrpServer) Trans

func (this *FrpServer) Trans() *factory.Transaction

func (*FrpServer) Upsert

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

func (*FrpServer) Use

func (this *FrpServer) Use(trans *factory.Transaction) factory.Model

func (*FrpServer) Validate

func (this *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
}

func (*FtpUser) Add

func (this *FtpUser) Add() (pk interface{}, err error)

func (*FtpUser) AsKV

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

func (*FtpUser) AsMap

func (this *FtpUser) AsMap() map[string]interface{}

func (*FtpUser) AsRow

func (this *FtpUser) AsRow() map[string]interface{}

func (*FtpUser) BatchValidate

func (this *FtpUser) BatchValidate(kvset map[string]interface{}) error

func (*FtpUser) Count

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

func (*FtpUser) Delete

func (this *FtpUser) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) Edit

func (this *FtpUser) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) Get

func (this *FtpUser) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUser) GroupBy

func (this *FtpUser) GroupBy(keyField string, inputRows ...[]*FtpUser) map[string][]*FtpUser

func (*FtpUser) KeyBy

func (this *FtpUser) KeyBy(keyField string, inputRows ...[]*FtpUser) map[string]*FtpUser

func (*FtpUser) List

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

func (*FtpUser) ListByOffset

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

func (*FtpUser) Name_

func (this *FtpUser) Name_() string

func (*FtpUser) New

func (this *FtpUser) New(structName string, connID ...int) factory.Model

func (*FtpUser) NewObjects

func (this *FtpUser) NewObjects() *[]*FtpUser

func (*FtpUser) NewParam

func (this *FtpUser) NewParam() *factory.Param

func (*FtpUser) Objects

func (this *FtpUser) Objects() []*FtpUser

func (*FtpUser) Param

func (this *FtpUser) Param() *factory.Param

func (*FtpUser) Reset

func (this *FtpUser) Reset() *FtpUser

func (*FtpUser) SetConnID

func (this *FtpUser) SetConnID(connID int) factory.Model

func (*FtpUser) SetField

func (this *FtpUser) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*FtpUser) SetFields

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

func (*FtpUser) SetNamer

func (this *FtpUser) SetNamer(namer func(string) string) factory.Model

func (*FtpUser) SetParam

func (this *FtpUser) SetParam(param *factory.Param) factory.Model

func (*FtpUser) Setter

func (this *FtpUser) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*FtpUser) Short_

func (this *FtpUser) Short_() string

func (*FtpUser) Struct_

func (this *FtpUser) Struct_() string

func (*FtpUser) Trans

func (this *FtpUser) Trans() *factory.Transaction

func (*FtpUser) Upsert

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

func (*FtpUser) Use

func (this *FtpUser) Use(trans *factory.Transaction) factory.Model

func (*FtpUser) Validate

func (this *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
}

func (*FtpUserGroup) Add

func (this *FtpUserGroup) Add() (pk interface{}, err error)

func (*FtpUserGroup) AsKV

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

func (*FtpUserGroup) AsMap

func (this *FtpUserGroup) AsMap() map[string]interface{}

func (*FtpUserGroup) AsRow

func (this *FtpUserGroup) AsRow() map[string]interface{}

func (*FtpUserGroup) BatchValidate

func (this *FtpUserGroup) BatchValidate(kvset map[string]interface{}) error

func (*FtpUserGroup) Count

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

func (*FtpUserGroup) Delete

func (this *FtpUserGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) Edit

func (this *FtpUserGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) Get

func (this *FtpUserGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*FtpUserGroup) GroupBy

func (this *FtpUserGroup) GroupBy(keyField string, inputRows ...[]*FtpUserGroup) map[string][]*FtpUserGroup

func (*FtpUserGroup) KeyBy

func (this *FtpUserGroup) KeyBy(keyField string, inputRows ...[]*FtpUserGroup) map[string]*FtpUserGroup

func (*FtpUserGroup) List

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

func (*FtpUserGroup) ListByOffset

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

func (*FtpUserGroup) Name_

func (this *FtpUserGroup) Name_() string

func (*FtpUserGroup) New

func (this *FtpUserGroup) New(structName string, connID ...int) factory.Model

func (*FtpUserGroup) NewObjects

func (this *FtpUserGroup) NewObjects() *[]*FtpUserGroup

func (*FtpUserGroup) NewParam

func (this *FtpUserGroup) NewParam() *factory.Param

func (*FtpUserGroup) Objects

func (this *FtpUserGroup) Objects() []*FtpUserGroup

func (*FtpUserGroup) Param

func (this *FtpUserGroup) Param() *factory.Param

func (*FtpUserGroup) Reset

func (this *FtpUserGroup) Reset() *FtpUserGroup

func (*FtpUserGroup) SetConnID

func (this *FtpUserGroup) SetConnID(connID int) factory.Model

func (*FtpUserGroup) SetField

func (this *FtpUserGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*FtpUserGroup) SetFields

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

func (*FtpUserGroup) SetNamer

func (this *FtpUserGroup) SetNamer(namer func(string) string) factory.Model

func (*FtpUserGroup) SetParam

func (this *FtpUserGroup) SetParam(param *factory.Param) factory.Model

func (*FtpUserGroup) Setter

func (this *FtpUserGroup) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*FtpUserGroup) Short_

func (this *FtpUserGroup) Short_() string

func (*FtpUserGroup) Struct_

func (this *FtpUserGroup) Struct_() string

func (*FtpUserGroup) Trans

func (this *FtpUserGroup) Trans() *factory.Transaction

func (*FtpUserGroup) Upsert

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

func (*FtpUserGroup) Use

func (this *FtpUserGroup) Use(trans *factory.Transaction) factory.Model

func (*FtpUserGroup) Validate

func (this *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
}

func (*SendingLog) Add

func (this *SendingLog) Add() (pk interface{}, err error)

func (*SendingLog) AsKV

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

func (*SendingLog) AsMap

func (this *SendingLog) AsMap() map[string]interface{}

func (*SendingLog) AsRow

func (this *SendingLog) AsRow() map[string]interface{}

func (*SendingLog) BatchValidate

func (this *SendingLog) BatchValidate(kvset map[string]interface{}) error

func (*SendingLog) Count

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

func (*SendingLog) Delete

func (this *SendingLog) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*SendingLog) Edit

func (this *SendingLog) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*SendingLog) Get

func (this *SendingLog) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*SendingLog) GroupBy

func (this *SendingLog) GroupBy(keyField string, inputRows ...[]*SendingLog) map[string][]*SendingLog

func (*SendingLog) KeyBy

func (this *SendingLog) KeyBy(keyField string, inputRows ...[]*SendingLog) map[string]*SendingLog

func (*SendingLog) List

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

func (*SendingLog) ListByOffset

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

func (*SendingLog) Name_

func (this *SendingLog) Name_() string

func (*SendingLog) New

func (this *SendingLog) New(structName string, connID ...int) factory.Model

func (*SendingLog) NewObjects

func (this *SendingLog) NewObjects() *[]*SendingLog

func (*SendingLog) NewParam

func (this *SendingLog) NewParam() *factory.Param

func (*SendingLog) Objects

func (this *SendingLog) Objects() []*SendingLog

func (*SendingLog) Param

func (this *SendingLog) Param() *factory.Param

func (*SendingLog) Reset

func (this *SendingLog) Reset() *SendingLog

func (*SendingLog) SetConnID

func (this *SendingLog) SetConnID(connID int) factory.Model

func (*SendingLog) SetField

func (this *SendingLog) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*SendingLog) SetFields

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

func (*SendingLog) SetNamer

func (this *SendingLog) SetNamer(namer func(string) string) factory.Model

func (*SendingLog) SetParam

func (this *SendingLog) SetParam(param *factory.Param) factory.Model

func (*SendingLog) Setter

func (this *SendingLog) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*SendingLog) Short_

func (this *SendingLog) Short_() string

func (*SendingLog) Struct_

func (this *SendingLog) Struct_() string

func (*SendingLog) Trans

func (this *SendingLog) Trans() *factory.Transaction

func (*SendingLog) Upsert

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

func (*SendingLog) Use

func (this *SendingLog) Use(trans *factory.Transaction) factory.Model

func (*SendingLog) Validate

func (this *SendingLog) Validate(field string, value interface{}) 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
}

func (*SshUser) Add

func (this *SshUser) Add() (pk interface{}, err error)

func (*SshUser) AsKV

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

func (*SshUser) AsMap

func (this *SshUser) AsMap() map[string]interface{}

func (*SshUser) AsRow

func (this *SshUser) AsRow() map[string]interface{}

func (*SshUser) BatchValidate

func (this *SshUser) BatchValidate(kvset map[string]interface{}) error

func (*SshUser) Count

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

func (*SshUser) Delete

func (this *SshUser) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUser) Edit

func (this *SshUser) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUser) Get

func (this *SshUser) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUser) GroupBy

func (this *SshUser) GroupBy(keyField string, inputRows ...[]*SshUser) map[string][]*SshUser

func (*SshUser) KeyBy

func (this *SshUser) KeyBy(keyField string, inputRows ...[]*SshUser) map[string]*SshUser

func (*SshUser) List

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

func (*SshUser) ListByOffset

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

func (*SshUser) Name_

func (this *SshUser) Name_() string

func (*SshUser) New

func (this *SshUser) New(structName string, connID ...int) factory.Model

func (*SshUser) NewObjects

func (this *SshUser) NewObjects() *[]*SshUser

func (*SshUser) NewParam

func (this *SshUser) NewParam() *factory.Param

func (*SshUser) Objects

func (this *SshUser) Objects() []*SshUser

func (*SshUser) Param

func (this *SshUser) Param() *factory.Param

func (*SshUser) Reset

func (this *SshUser) Reset() *SshUser

func (*SshUser) SetConnID

func (this *SshUser) SetConnID(connID int) factory.Model

func (*SshUser) SetField

func (this *SshUser) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*SshUser) SetFields

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

func (*SshUser) SetNamer

func (this *SshUser) SetNamer(namer func(string) string) factory.Model

func (*SshUser) SetParam

func (this *SshUser) SetParam(param *factory.Param) factory.Model

func (*SshUser) Setter

func (this *SshUser) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*SshUser) Short_

func (this *SshUser) Short_() string

func (*SshUser) Struct_

func (this *SshUser) Struct_() string

func (*SshUser) Trans

func (this *SshUser) Trans() *factory.Transaction

func (*SshUser) Upsert

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

func (*SshUser) Use

func (this *SshUser) Use(trans *factory.Transaction) factory.Model

func (*SshUser) Validate

func (this *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
}

func (*SshUserGroup) Add

func (this *SshUserGroup) Add() (pk interface{}, err error)

func (*SshUserGroup) AsKV

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

func (*SshUserGroup) AsMap

func (this *SshUserGroup) AsMap() map[string]interface{}

func (*SshUserGroup) AsRow

func (this *SshUserGroup) AsRow() map[string]interface{}

func (*SshUserGroup) BatchValidate

func (this *SshUserGroup) BatchValidate(kvset map[string]interface{}) error

func (*SshUserGroup) Count

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

func (*SshUserGroup) Delete

func (this *SshUserGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUserGroup) Edit

func (this *SshUserGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUserGroup) Get

func (this *SshUserGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*SshUserGroup) GroupBy

func (this *SshUserGroup) GroupBy(keyField string, inputRows ...[]*SshUserGroup) map[string][]*SshUserGroup

func (*SshUserGroup) KeyBy

func (this *SshUserGroup) KeyBy(keyField string, inputRows ...[]*SshUserGroup) map[string]*SshUserGroup

func (*SshUserGroup) List

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

func (*SshUserGroup) ListByOffset

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

func (*SshUserGroup) Name_

func (this *SshUserGroup) Name_() string

func (*SshUserGroup) New

func (this *SshUserGroup) New(structName string, connID ...int) factory.Model

func (*SshUserGroup) NewObjects

func (this *SshUserGroup) NewObjects() *[]*SshUserGroup

func (*SshUserGroup) NewParam

func (this *SshUserGroup) NewParam() *factory.Param

func (*SshUserGroup) Objects

func (this *SshUserGroup) Objects() []*SshUserGroup

func (*SshUserGroup) Param

func (this *SshUserGroup) Param() *factory.Param

func (*SshUserGroup) Reset

func (this *SshUserGroup) Reset() *SshUserGroup

func (*SshUserGroup) SetConnID

func (this *SshUserGroup) SetConnID(connID int) factory.Model

func (*SshUserGroup) SetField

func (this *SshUserGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*SshUserGroup) SetFields

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

func (*SshUserGroup) SetNamer

func (this *SshUserGroup) SetNamer(namer func(string) string) factory.Model

func (*SshUserGroup) SetParam

func (this *SshUserGroup) SetParam(param *factory.Param) factory.Model

func (*SshUserGroup) Setter

func (this *SshUserGroup) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*SshUserGroup) Short_

func (this *SshUserGroup) Short_() string

func (*SshUserGroup) Struct_

func (this *SshUserGroup) Struct_() string

func (*SshUserGroup) Trans

func (this *SshUserGroup) Trans() *factory.Transaction

func (*SshUserGroup) Upsert

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

func (*SshUserGroup) Use

func (this *SshUserGroup) Use(trans *factory.Transaction) factory.Model

func (*SshUserGroup) Validate

func (this *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
}

func (*Task) Add

func (this *Task) Add() (pk interface{}, err error)

func (*Task) AsKV

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

func (*Task) AsMap

func (this *Task) AsMap() map[string]interface{}

func (*Task) AsRow

func (this *Task) AsRow() map[string]interface{}

func (*Task) BatchValidate

func (this *Task) BatchValidate(kvset map[string]interface{}) error

func (*Task) Count

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

func (*Task) Delete

func (this *Task) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) Edit

func (this *Task) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) Get

func (this *Task) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Task) GroupBy

func (this *Task) GroupBy(keyField string, inputRows ...[]*Task) map[string][]*Task

func (*Task) KeyBy

func (this *Task) KeyBy(keyField string, inputRows ...[]*Task) map[string]*Task

func (*Task) List

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

func (*Task) ListByOffset

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

func (*Task) Name_

func (this *Task) Name_() string

func (*Task) New

func (this *Task) New(structName string, connID ...int) factory.Model

func (*Task) NewObjects

func (this *Task) NewObjects() *[]*Task

func (*Task) NewParam

func (this *Task) NewParam() *factory.Param

func (*Task) Objects

func (this *Task) Objects() []*Task

func (*Task) Param

func (this *Task) Param() *factory.Param

func (*Task) Reset

func (this *Task) Reset() *Task

func (*Task) SetConnID

func (this *Task) SetConnID(connID int) factory.Model

func (*Task) SetField

func (this *Task) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*Task) SetFields

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

func (*Task) SetNamer

func (this *Task) SetNamer(namer func(string) string) factory.Model

func (*Task) SetParam

func (this *Task) SetParam(param *factory.Param) factory.Model

func (*Task) Setter

func (this *Task) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*Task) Short_

func (this *Task) Short_() string

func (*Task) Struct_

func (this *Task) Struct_() string

func (*Task) Trans

func (this *Task) Trans() *factory.Transaction

func (*Task) Upsert

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

func (*Task) Use

func (this *Task) Use(trans *factory.Transaction) factory.Model

func (*Task) Validate

func (this *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
}

func (*TaskGroup) Add

func (this *TaskGroup) Add() (pk interface{}, err error)

func (*TaskGroup) AsKV

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

func (*TaskGroup) AsMap

func (this *TaskGroup) AsMap() map[string]interface{}

func (*TaskGroup) AsRow

func (this *TaskGroup) AsRow() map[string]interface{}

func (*TaskGroup) BatchValidate

func (this *TaskGroup) BatchValidate(kvset map[string]interface{}) error

func (*TaskGroup) Count

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

func (*TaskGroup) Delete

func (this *TaskGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) Edit

func (this *TaskGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) Get

func (this *TaskGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskGroup) GroupBy

func (this *TaskGroup) GroupBy(keyField string, inputRows ...[]*TaskGroup) map[string][]*TaskGroup

func (*TaskGroup) KeyBy

func (this *TaskGroup) KeyBy(keyField string, inputRows ...[]*TaskGroup) map[string]*TaskGroup

func (*TaskGroup) List

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

func (*TaskGroup) ListByOffset

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

func (*TaskGroup) Name_

func (this *TaskGroup) Name_() string

func (*TaskGroup) New

func (this *TaskGroup) New(structName string, connID ...int) factory.Model

func (*TaskGroup) NewObjects

func (this *TaskGroup) NewObjects() *[]*TaskGroup

func (*TaskGroup) NewParam

func (this *TaskGroup) NewParam() *factory.Param

func (*TaskGroup) Objects

func (this *TaskGroup) Objects() []*TaskGroup

func (*TaskGroup) Param

func (this *TaskGroup) Param() *factory.Param

func (*TaskGroup) Reset

func (this *TaskGroup) Reset() *TaskGroup

func (*TaskGroup) SetConnID

func (this *TaskGroup) SetConnID(connID int) factory.Model

func (*TaskGroup) SetField

func (this *TaskGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*TaskGroup) SetFields

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

func (*TaskGroup) SetNamer

func (this *TaskGroup) SetNamer(namer func(string) string) factory.Model

func (*TaskGroup) SetParam

func (this *TaskGroup) SetParam(param *factory.Param) factory.Model

func (*TaskGroup) Setter

func (this *TaskGroup) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*TaskGroup) Short_

func (this *TaskGroup) Short_() string

func (*TaskGroup) Struct_

func (this *TaskGroup) Struct_() string

func (*TaskGroup) Trans

func (this *TaskGroup) Trans() *factory.Transaction

func (*TaskGroup) Upsert

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

func (*TaskGroup) Use

func (this *TaskGroup) Use(trans *factory.Transaction) factory.Model

func (*TaskGroup) Validate

func (this *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
}

func (*TaskLog) Add

func (this *TaskLog) Add() (pk interface{}, err error)

func (*TaskLog) AsKV

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

func (*TaskLog) AsMap

func (this *TaskLog) AsMap() map[string]interface{}

func (*TaskLog) AsRow

func (this *TaskLog) AsRow() map[string]interface{}

func (*TaskLog) BatchValidate

func (this *TaskLog) BatchValidate(kvset map[string]interface{}) error

func (*TaskLog) Count

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

func (*TaskLog) Delete

func (this *TaskLog) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) Edit

func (this *TaskLog) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) Get

func (this *TaskLog) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*TaskLog) GroupBy

func (this *TaskLog) GroupBy(keyField string, inputRows ...[]*TaskLog) map[string][]*TaskLog

func (*TaskLog) KeyBy

func (this *TaskLog) KeyBy(keyField string, inputRows ...[]*TaskLog) map[string]*TaskLog

func (*TaskLog) List

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

func (*TaskLog) ListByOffset

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

func (*TaskLog) Name_

func (this *TaskLog) Name_() string

func (*TaskLog) New

func (this *TaskLog) New(structName string, connID ...int) factory.Model

func (*TaskLog) NewObjects

func (this *TaskLog) NewObjects() *[]*TaskLog

func (*TaskLog) NewParam

func (this *TaskLog) NewParam() *factory.Param

func (*TaskLog) Objects

func (this *TaskLog) Objects() []*TaskLog

func (*TaskLog) Param

func (this *TaskLog) Param() *factory.Param

func (*TaskLog) Reset

func (this *TaskLog) Reset() *TaskLog

func (*TaskLog) SetConnID

func (this *TaskLog) SetConnID(connID int) factory.Model

func (*TaskLog) SetField

func (this *TaskLog) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*TaskLog) SetFields

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

func (*TaskLog) SetNamer

func (this *TaskLog) SetNamer(namer func(string) string) factory.Model

func (*TaskLog) SetParam

func (this *TaskLog) SetParam(param *factory.Param) factory.Model

func (*TaskLog) Setter

func (this *TaskLog) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*TaskLog) Short_

func (this *TaskLog) Short_() string

func (*TaskLog) Struct_

func (this *TaskLog) Struct_() string

func (*TaskLog) Trans

func (this *TaskLog) Trans() *factory.Transaction

func (*TaskLog) Upsert

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

func (*TaskLog) Use

func (this *TaskLog) Use(trans *factory.Transaction) factory.Model

func (*TaskLog) Validate

func (this *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"`
	// contains filtered or unexported fields
}

func (*User) Add

func (this *User) Add() (pk interface{}, err error)

func (*User) AsKV

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

func (*User) AsMap

func (this *User) AsMap() map[string]interface{}

func (*User) AsRow

func (this *User) AsRow() map[string]interface{}

func (*User) BatchValidate

func (this *User) BatchValidate(kvset map[string]interface{}) error

func (*User) Count

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

func (*User) Delete

func (this *User) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) Edit

func (this *User) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) Get

func (this *User) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*User) GroupBy

func (this *User) GroupBy(keyField string, inputRows ...[]*User) map[string][]*User

func (*User) KeyBy

func (this *User) KeyBy(keyField string, inputRows ...[]*User) map[string]*User

func (*User) List

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

func (*User) ListByOffset

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

func (*User) Name_

func (this *User) Name_() string

func (*User) New

func (this *User) New(structName string, connID ...int) factory.Model

func (*User) NewObjects

func (this *User) NewObjects() *[]*User

func (*User) NewParam

func (this *User) NewParam() *factory.Param

func (*User) Objects

func (this *User) Objects() []*User

func (*User) Param

func (this *User) Param() *factory.Param

func (*User) Reset

func (this *User) Reset() *User

func (*User) SetConnID

func (this *User) SetConnID(connID int) factory.Model

func (*User) SetField

func (this *User) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*User) SetFields

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

func (*User) SetNamer

func (this *User) SetNamer(namer func(string) string) factory.Model

func (*User) SetParam

func (this *User) SetParam(param *factory.Param) factory.Model

func (*User) Setter

func (this *User) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*User) Short_

func (this *User) Short_() string

func (*User) Struct_

func (this *User) Struct_() string

func (*User) Trans

func (this *User) Trans() *factory.Transaction

func (*User) Upsert

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

func (*User) Use

func (this *User) Use(trans *factory.Transaction) factory.Model

func (*User) Validate

func (this *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
}

func (*UserRole) Add

func (this *UserRole) Add() (pk interface{}, err error)

func (*UserRole) AsKV

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

func (*UserRole) AsMap

func (this *UserRole) AsMap() map[string]interface{}

func (*UserRole) AsRow

func (this *UserRole) AsRow() map[string]interface{}

func (*UserRole) BatchValidate

func (this *UserRole) BatchValidate(kvset map[string]interface{}) error

func (*UserRole) Count

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

func (*UserRole) Delete

func (this *UserRole) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserRole) Edit

func (this *UserRole) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserRole) Get

func (this *UserRole) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserRole) GroupBy

func (this *UserRole) GroupBy(keyField string, inputRows ...[]*UserRole) map[string][]*UserRole

func (*UserRole) KeyBy

func (this *UserRole) KeyBy(keyField string, inputRows ...[]*UserRole) map[string]*UserRole

func (*UserRole) List

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

func (*UserRole) ListByOffset

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

func (*UserRole) Name_

func (this *UserRole) Name_() string

func (*UserRole) New

func (this *UserRole) New(structName string, connID ...int) factory.Model

func (*UserRole) NewObjects

func (this *UserRole) NewObjects() *[]*UserRole

func (*UserRole) NewParam

func (this *UserRole) NewParam() *factory.Param

func (*UserRole) Objects

func (this *UserRole) Objects() []*UserRole

func (*UserRole) Param

func (this *UserRole) Param() *factory.Param

func (*UserRole) Reset

func (this *UserRole) Reset() *UserRole

func (*UserRole) SetConnID

func (this *UserRole) SetConnID(connID int) factory.Model

func (*UserRole) SetField

func (this *UserRole) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*UserRole) SetFields

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

func (*UserRole) SetNamer

func (this *UserRole) SetNamer(namer func(string) string) factory.Model

func (*UserRole) SetParam

func (this *UserRole) SetParam(param *factory.Param) factory.Model

func (*UserRole) Setter

func (this *UserRole) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*UserRole) Short_

func (this *UserRole) Short_() string

func (*UserRole) Struct_

func (this *UserRole) Struct_() string

func (*UserRole) Trans

func (this *UserRole) Trans() *factory.Transaction

func (*UserRole) Upsert

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

func (*UserRole) Use

func (this *UserRole) Use(trans *factory.Transaction) factory.Model

func (*UserRole) Validate

func (this *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
}

func (*UserU2f) Add

func (this *UserU2f) Add() (pk interface{}, err error)

func (*UserU2f) AsKV

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

func (*UserU2f) AsMap

func (this *UserU2f) AsMap() map[string]interface{}

func (*UserU2f) AsRow

func (this *UserU2f) AsRow() map[string]interface{}

func (*UserU2f) BatchValidate

func (this *UserU2f) BatchValidate(kvset map[string]interface{}) error

func (*UserU2f) Count

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

func (*UserU2f) Delete

func (this *UserU2f) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) Edit

func (this *UserU2f) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) Get

func (this *UserU2f) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*UserU2f) GroupBy

func (this *UserU2f) GroupBy(keyField string, inputRows ...[]*UserU2f) map[string][]*UserU2f

func (*UserU2f) KeyBy

func (this *UserU2f) KeyBy(keyField string, inputRows ...[]*UserU2f) map[string]*UserU2f

func (*UserU2f) List

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

func (*UserU2f) ListByOffset

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

func (*UserU2f) Name_

func (this *UserU2f) Name_() string

func (*UserU2f) New

func (this *UserU2f) New(structName string, connID ...int) factory.Model

func (*UserU2f) NewObjects

func (this *UserU2f) NewObjects() *[]*UserU2f

func (*UserU2f) NewParam

func (this *UserU2f) NewParam() *factory.Param

func (*UserU2f) Objects

func (this *UserU2f) Objects() []*UserU2f

func (*UserU2f) Param

func (this *UserU2f) Param() *factory.Param

func (*UserU2f) Reset

func (this *UserU2f) Reset() *UserU2f

func (*UserU2f) SetConnID

func (this *UserU2f) SetConnID(connID int) factory.Model

func (*UserU2f) SetField

func (this *UserU2f) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*UserU2f) SetFields

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

func (*UserU2f) SetNamer

func (this *UserU2f) SetNamer(namer func(string) string) factory.Model

func (*UserU2f) SetParam

func (this *UserU2f) SetParam(param *factory.Param) factory.Model

func (*UserU2f) Setter

func (this *UserU2f) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*UserU2f) Short_

func (this *UserU2f) Short_() string

func (*UserU2f) Struct_

func (this *UserU2f) Struct_() string

func (*UserU2f) Trans

func (this *UserU2f) Trans() *factory.Transaction

func (*UserU2f) Upsert

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

func (*UserU2f) Use

func (this *UserU2f) Use(trans *factory.Transaction) factory.Model

func (*UserU2f) Validate

func (this *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
}

func (*Vhost) Add

func (this *Vhost) Add() (pk interface{}, err error)

func (*Vhost) AsKV

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

func (*Vhost) AsMap

func (this *Vhost) AsMap() map[string]interface{}

func (*Vhost) AsRow

func (this *Vhost) AsRow() map[string]interface{}

func (*Vhost) BatchValidate

func (this *Vhost) BatchValidate(kvset map[string]interface{}) error

func (*Vhost) Count

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

func (*Vhost) Delete

func (this *Vhost) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) Edit

func (this *Vhost) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) Get

func (this *Vhost) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*Vhost) GroupBy

func (this *Vhost) GroupBy(keyField string, inputRows ...[]*Vhost) map[string][]*Vhost

func (*Vhost) KeyBy

func (this *Vhost) KeyBy(keyField string, inputRows ...[]*Vhost) map[string]*Vhost

func (*Vhost) List

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

func (*Vhost) ListByOffset

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

func (*Vhost) Name_

func (this *Vhost) Name_() string

func (*Vhost) New

func (this *Vhost) New(structName string, connID ...int) factory.Model

func (*Vhost) NewObjects

func (this *Vhost) NewObjects() *[]*Vhost

func (*Vhost) NewParam

func (this *Vhost) NewParam() *factory.Param

func (*Vhost) Objects

func (this *Vhost) Objects() []*Vhost

func (*Vhost) Param

func (this *Vhost) Param() *factory.Param

func (*Vhost) Reset

func (this *Vhost) Reset() *Vhost

func (*Vhost) SetConnID

func (this *Vhost) SetConnID(connID int) factory.Model

func (*Vhost) SetField

func (this *Vhost) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*Vhost) SetFields

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

func (*Vhost) SetNamer

func (this *Vhost) SetNamer(namer func(string) string) factory.Model

func (*Vhost) SetParam

func (this *Vhost) SetParam(param *factory.Param) factory.Model

func (*Vhost) Setter

func (this *Vhost) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*Vhost) Short_

func (this *Vhost) Short_() string

func (*Vhost) Struct_

func (this *Vhost) Struct_() string

func (*Vhost) Trans

func (this *Vhost) Trans() *factory.Transaction

func (*Vhost) Upsert

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

func (*Vhost) Use

func (this *Vhost) Use(trans *factory.Transaction) factory.Model

func (*Vhost) Validate

func (this *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
}

func (*VhostGroup) Add

func (this *VhostGroup) Add() (pk interface{}, err error)

func (*VhostGroup) AsKV

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

func (*VhostGroup) AsMap

func (this *VhostGroup) AsMap() map[string]interface{}

func (*VhostGroup) AsRow

func (this *VhostGroup) AsRow() map[string]interface{}

func (*VhostGroup) BatchValidate

func (this *VhostGroup) BatchValidate(kvset map[string]interface{}) error

func (*VhostGroup) Count

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

func (*VhostGroup) Delete

func (this *VhostGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) error

func (*VhostGroup) Edit

func (this *VhostGroup) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*VhostGroup) Get

func (this *VhostGroup) Get(mw func(db.Result) db.Result, args ...interface{}) error

func (*VhostGroup) GroupBy

func (this *VhostGroup) GroupBy(keyField string, inputRows ...[]*VhostGroup) map[string][]*VhostGroup

func (*VhostGroup) KeyBy

func (this *VhostGroup) KeyBy(keyField string, inputRows ...[]*VhostGroup) map[string]*VhostGroup

func (*VhostGroup) List

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

func (*VhostGroup) ListByOffset

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

func (*VhostGroup) Name_

func (this *VhostGroup) Name_() string

func (*VhostGroup) New

func (this *VhostGroup) New(structName string, connID ...int) factory.Model

func (*VhostGroup) NewObjects

func (this *VhostGroup) NewObjects() *[]*VhostGroup

func (*VhostGroup) NewParam

func (this *VhostGroup) NewParam() *factory.Param

func (*VhostGroup) Objects

func (this *VhostGroup) Objects() []*VhostGroup

func (*VhostGroup) Param

func (this *VhostGroup) Param() *factory.Param

func (*VhostGroup) Reset

func (this *VhostGroup) Reset() *VhostGroup

func (*VhostGroup) SetConnID

func (this *VhostGroup) SetConnID(connID int) factory.Model

func (*VhostGroup) SetField

func (this *VhostGroup) SetField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) error

func (*VhostGroup) SetFields

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

func (*VhostGroup) SetNamer

func (this *VhostGroup) SetNamer(namer func(string) string) factory.Model

func (*VhostGroup) SetParam

func (this *VhostGroup) SetParam(param *factory.Param) factory.Model

func (*VhostGroup) Setter

func (this *VhostGroup) Setter(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*VhostGroup) Short_

func (this *VhostGroup) Short_() string

func (*VhostGroup) Struct_

func (this *VhostGroup) Struct_() string

func (*VhostGroup) Trans

func (this *VhostGroup) Trans() *factory.Transaction

func (*VhostGroup) Upsert

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

func (*VhostGroup) Use

func (this *VhostGroup) Use(trans *factory.Transaction) factory.Model

func (*VhostGroup) Validate

func (this *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