dbschema

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithPrefix = func(tableName string) string {
	return "" + tableName
}

Functions

This section is empty.

Types

type NgingFrpClient

type NgingFrpClient 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 */
	Metas             string `db:"metas" bson:"metas" comment:"meta值" json:"metas" xml:"metas"`
	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
}

NgingFrpClient FRP客户端设置

func NewNgingFrpClient

func NewNgingFrpClient(ctx echo.Context) *NgingFrpClient

func (*NgingFrpClient) AsKV

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

func (*NgingFrpClient) AsMap

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

func (*NgingFrpClient) AsRow

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

func (*NgingFrpClient) BatchValidate

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

func (*NgingFrpClient) CPAFrom

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

func (*NgingFrpClient) Context

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

func (*NgingFrpClient) Count

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

func (*NgingFrpClient) Delete

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

func (*NgingFrpClient) Deletex added in v0.0.4

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

func (*NgingFrpClient) EventOFF

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

func (*NgingFrpClient) EventON

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

func (*NgingFrpClient) Exists

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

func (*NgingFrpClient) FromRow

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

func (*NgingFrpClient) Get

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

func (*NgingFrpClient) GroupBy

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

func (*NgingFrpClient) InitObjects

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

func (*NgingFrpClient) Insert added in v0.1.0

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

func (*NgingFrpClient) KeyBy

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

func (*NgingFrpClient) List

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

func (*NgingFrpClient) ListByOffset

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

func (*NgingFrpClient) Name_

func (a *NgingFrpClient) Name_() string

func (*NgingFrpClient) Namer

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

func (*NgingFrpClient) New

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

func (*NgingFrpClient) NewObjects

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

func (*NgingFrpClient) NewParam

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

func (*NgingFrpClient) Objects

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

func (*NgingFrpClient) Param

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

func (*NgingFrpClient) Reset

func (a *NgingFrpClient) Reset() *NgingFrpClient

func (*NgingFrpClient) Set

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

func (*NgingFrpClient) SetConnID

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

func (*NgingFrpClient) SetContext

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

func (*NgingFrpClient) SetNamer

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

func (*NgingFrpClient) SetParam

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

func (*NgingFrpClient) Short_

func (a *NgingFrpClient) Short_() string

func (*NgingFrpClient) Struct_

func (a *NgingFrpClient) Struct_() string

func (*NgingFrpClient) Trans

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

func (*NgingFrpClient) Update added in v0.1.0

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

func (*NgingFrpClient) UpdateByFields added in v0.1.0

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

func (*NgingFrpClient) UpdateField added in v0.1.0

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

func (*NgingFrpClient) UpdateFields added in v0.1.0

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

func (*NgingFrpClient) UpdateValues added in v0.1.0

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

func (*NgingFrpClient) Updatex added in v0.1.0

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

func (*NgingFrpClient) UpdatexByFields added in v0.1.0

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

func (*NgingFrpClient) Upsert

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

func (*NgingFrpClient) Use

func (*NgingFrpClient) Validate

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

func (*NgingFrpClient) XObjects

func (a *NgingFrpClient) XObjects() Slice_NgingFrpClient

type NgingFrpGroup

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

NgingFrpGroup FRP服务组

func NewNgingFrpGroup

func NewNgingFrpGroup(ctx echo.Context) *NgingFrpGroup

func (*NgingFrpGroup) AsKV

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

func (*NgingFrpGroup) AsMap

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

func (*NgingFrpGroup) AsRow

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

func (*NgingFrpGroup) BatchValidate

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

func (*NgingFrpGroup) CPAFrom

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

func (*NgingFrpGroup) Context

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

func (*NgingFrpGroup) Count

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

func (*NgingFrpGroup) Delete

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

func (*NgingFrpGroup) Deletex added in v0.0.4

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

func (*NgingFrpGroup) EventOFF

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

func (*NgingFrpGroup) EventON

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

func (*NgingFrpGroup) Exists

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

func (*NgingFrpGroup) FromRow

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

func (*NgingFrpGroup) Get

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

func (*NgingFrpGroup) GroupBy

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

func (*NgingFrpGroup) InitObjects

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

func (*NgingFrpGroup) Insert added in v0.1.0

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

func (*NgingFrpGroup) KeyBy

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

func (*NgingFrpGroup) List

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

func (*NgingFrpGroup) ListByOffset

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

func (*NgingFrpGroup) Name_

func (a *NgingFrpGroup) Name_() string

func (*NgingFrpGroup) Namer

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

func (*NgingFrpGroup) New

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

func (*NgingFrpGroup) NewObjects

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

func (*NgingFrpGroup) NewParam

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

func (*NgingFrpGroup) Objects

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

func (*NgingFrpGroup) Param

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

func (*NgingFrpGroup) Reset

func (a *NgingFrpGroup) Reset() *NgingFrpGroup

func (*NgingFrpGroup) Set

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

func (*NgingFrpGroup) SetConnID

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

func (*NgingFrpGroup) SetContext

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

func (*NgingFrpGroup) SetNamer

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

func (*NgingFrpGroup) SetParam

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

func (*NgingFrpGroup) Short_

func (a *NgingFrpGroup) Short_() string

func (*NgingFrpGroup) Struct_

func (a *NgingFrpGroup) Struct_() string

func (*NgingFrpGroup) Trans

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

func (*NgingFrpGroup) Update added in v0.1.0

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

func (*NgingFrpGroup) UpdateByFields added in v0.1.0

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

func (*NgingFrpGroup) UpdateField added in v0.1.0

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

func (*NgingFrpGroup) UpdateFields added in v0.1.0

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

func (*NgingFrpGroup) UpdateValues added in v0.1.0

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

func (*NgingFrpGroup) Updatex added in v0.1.0

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

func (*NgingFrpGroup) UpdatexByFields added in v0.1.0

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

func (*NgingFrpGroup) Upsert

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

func (*NgingFrpGroup) Use

func (*NgingFrpGroup) Validate

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

func (*NgingFrpGroup) XObjects

func (a *NgingFrpGroup) XObjects() Slice_NgingFrpGroup

type NgingFrpServer

type NgingFrpServer 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"`
	Plugins           string `db:"plugins" bson:"plugins" comment:"启用插件(半角逗号分隔)" json:"plugins" xml:"plugins"`
	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
}

NgingFrpServer FRP服务器设置

func NewNgingFrpServer

func NewNgingFrpServer(ctx echo.Context) *NgingFrpServer

func (*NgingFrpServer) AsKV

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

func (*NgingFrpServer) AsMap

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

func (*NgingFrpServer) AsRow

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

func (*NgingFrpServer) BatchValidate

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

func (*NgingFrpServer) CPAFrom

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

func (*NgingFrpServer) Context

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

func (*NgingFrpServer) Count

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

func (*NgingFrpServer) Delete

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

func (*NgingFrpServer) Deletex added in v0.0.4

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

func (*NgingFrpServer) EventOFF

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

func (*NgingFrpServer) EventON

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

func (*NgingFrpServer) Exists

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

func (*NgingFrpServer) FromRow

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

func (*NgingFrpServer) Get

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

func (*NgingFrpServer) GroupBy

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

func (*NgingFrpServer) InitObjects

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

func (*NgingFrpServer) Insert added in v0.1.0

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

func (*NgingFrpServer) KeyBy

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

func (*NgingFrpServer) List

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

func (*NgingFrpServer) ListByOffset

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

func (*NgingFrpServer) Name_

func (a *NgingFrpServer) Name_() string

func (*NgingFrpServer) Namer

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

func (*NgingFrpServer) New

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

func (*NgingFrpServer) NewObjects

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

func (*NgingFrpServer) NewParam

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

func (*NgingFrpServer) Objects

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

func (*NgingFrpServer) Param

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

func (*NgingFrpServer) Reset

func (a *NgingFrpServer) Reset() *NgingFrpServer

func (*NgingFrpServer) Set

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

func (*NgingFrpServer) SetConnID

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

func (*NgingFrpServer) SetContext

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

func (*NgingFrpServer) SetNamer

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

func (*NgingFrpServer) SetParam

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

func (*NgingFrpServer) Short_

func (a *NgingFrpServer) Short_() string

func (*NgingFrpServer) Struct_

func (a *NgingFrpServer) Struct_() string

func (*NgingFrpServer) Trans

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

func (*NgingFrpServer) Update added in v0.1.0

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

func (*NgingFrpServer) UpdateByFields added in v0.1.0

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

func (*NgingFrpServer) UpdateField added in v0.1.0

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

func (*NgingFrpServer) UpdateFields added in v0.1.0

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

func (*NgingFrpServer) UpdateValues added in v0.1.0

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

func (*NgingFrpServer) Updatex added in v0.1.0

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

func (*NgingFrpServer) UpdatexByFields added in v0.1.0

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

func (*NgingFrpServer) Upsert

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

func (*NgingFrpServer) Use

func (*NgingFrpServer) Validate

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

func (*NgingFrpServer) XObjects

func (a *NgingFrpServer) XObjects() Slice_NgingFrpServer

type NgingFrpUser

type NgingFrpUser struct {
	Id           uint64 `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	ServerId     uint   `db:"server_id" bson:"server_id" comment:"服务ID" json:"server_id" xml:"server_id"`
	CustomerId   uint64 `db:"customer_id" bson:"customer_id" comment:"客户ID" json:"customer_id" xml:"customer_id"`
	Uid          uint   `db:"uid" bson:"uid" comment:"管理员ID" json:"uid" xml:"uid"`
	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"`
	Bandwidth    string `db:"bandwidth" bson:"bandwidth" comment:"带宽(MB/KB) " json:"bandwidth" xml:"bandwidth"`
	TrafficUsed  uint64 `db:"traffic_used" bson:"traffic_used" comment:"已用流量" json:"traffic_used" xml:"traffic_used"`
	TrafficTotal uint64 `db:"traffic_total" bson:"traffic_total" comment:"流量总量" json:"traffic_total" xml:"traffic_total"`
	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"`
	Start        uint   `db:"start" bson:"start" comment:"生效时间" json:"start" xml:"start"`
	End          uint   `db:"end" bson:"end" comment:"过期时间" json:"end" xml:"end"`
	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
}

NgingFrpUser 网络用户

func NewNgingFrpUser

func NewNgingFrpUser(ctx echo.Context) *NgingFrpUser

func (*NgingFrpUser) AsKV

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

func (*NgingFrpUser) AsMap

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

func (*NgingFrpUser) AsRow

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

func (*NgingFrpUser) BatchValidate

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

func (*NgingFrpUser) CPAFrom

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

func (*NgingFrpUser) Context

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

func (*NgingFrpUser) Count

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

func (*NgingFrpUser) Delete

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

func (*NgingFrpUser) Deletex added in v0.0.4

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

func (*NgingFrpUser) EventOFF

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

func (*NgingFrpUser) EventON

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

func (*NgingFrpUser) Exists

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

func (*NgingFrpUser) FromRow

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

func (*NgingFrpUser) Get

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

func (*NgingFrpUser) GroupBy

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

func (*NgingFrpUser) InitObjects

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

func (*NgingFrpUser) Insert added in v0.1.0

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

func (*NgingFrpUser) KeyBy

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

func (*NgingFrpUser) List

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

func (*NgingFrpUser) ListByOffset

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

func (*NgingFrpUser) Name_

func (a *NgingFrpUser) Name_() string

func (*NgingFrpUser) Namer

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

func (*NgingFrpUser) New

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

func (*NgingFrpUser) NewObjects

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

func (*NgingFrpUser) NewParam

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

func (*NgingFrpUser) Objects

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

func (*NgingFrpUser) Param

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

func (*NgingFrpUser) Reset

func (a *NgingFrpUser) Reset() *NgingFrpUser

func (*NgingFrpUser) Set

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

func (*NgingFrpUser) SetConnID

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

func (*NgingFrpUser) SetContext

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

func (*NgingFrpUser) SetNamer

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

func (*NgingFrpUser) SetParam

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

func (*NgingFrpUser) Short_

func (a *NgingFrpUser) Short_() string

func (*NgingFrpUser) Struct_

func (a *NgingFrpUser) Struct_() string

func (*NgingFrpUser) Trans

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

func (*NgingFrpUser) Update added in v0.1.0

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

func (*NgingFrpUser) UpdateByFields added in v0.1.0

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

func (*NgingFrpUser) UpdateField added in v0.1.0

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

func (*NgingFrpUser) UpdateFields added in v0.1.0

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

func (*NgingFrpUser) UpdateValues added in v0.1.0

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

func (*NgingFrpUser) Updatex added in v0.1.0

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

func (*NgingFrpUser) UpdatexByFields added in v0.1.0

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

func (*NgingFrpUser) Upsert

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

func (*NgingFrpUser) Use

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

func (*NgingFrpUser) Validate

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

func (*NgingFrpUser) XObjects

func (a *NgingFrpUser) XObjects() Slice_NgingFrpUser

type Slice_NgingFrpClient

type Slice_NgingFrpClient []*NgingFrpClient

func (Slice_NgingFrpClient) AsKV

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

func (Slice_NgingFrpClient) FromList

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

func (Slice_NgingFrpClient) GroupBy

func (s Slice_NgingFrpClient) GroupBy(keyField string) map[string][]*NgingFrpClient

func (Slice_NgingFrpClient) KeyBy

func (s Slice_NgingFrpClient) KeyBy(keyField string) map[string]*NgingFrpClient

func (Slice_NgingFrpClient) Range

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

func (Slice_NgingFrpClient) RangeRaw

func (s Slice_NgingFrpClient) RangeRaw(fn func(m *NgingFrpClient) error) error

func (Slice_NgingFrpClient) Transform

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

type Slice_NgingFrpGroup

type Slice_NgingFrpGroup []*NgingFrpGroup

func (Slice_NgingFrpGroup) AsKV

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

func (Slice_NgingFrpGroup) FromList

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

func (Slice_NgingFrpGroup) GroupBy

func (s Slice_NgingFrpGroup) GroupBy(keyField string) map[string][]*NgingFrpGroup

func (Slice_NgingFrpGroup) KeyBy

func (s Slice_NgingFrpGroup) KeyBy(keyField string) map[string]*NgingFrpGroup

func (Slice_NgingFrpGroup) Range

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

func (Slice_NgingFrpGroup) RangeRaw

func (s Slice_NgingFrpGroup) RangeRaw(fn func(m *NgingFrpGroup) error) error

func (Slice_NgingFrpGroup) Transform

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

type Slice_NgingFrpServer

type Slice_NgingFrpServer []*NgingFrpServer

func (Slice_NgingFrpServer) AsKV

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

func (Slice_NgingFrpServer) FromList

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

func (Slice_NgingFrpServer) GroupBy

func (s Slice_NgingFrpServer) GroupBy(keyField string) map[string][]*NgingFrpServer

func (Slice_NgingFrpServer) KeyBy

func (s Slice_NgingFrpServer) KeyBy(keyField string) map[string]*NgingFrpServer

func (Slice_NgingFrpServer) Range

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

func (Slice_NgingFrpServer) RangeRaw

func (s Slice_NgingFrpServer) RangeRaw(fn func(m *NgingFrpServer) error) error

func (Slice_NgingFrpServer) Transform

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

type Slice_NgingFrpUser

type Slice_NgingFrpUser []*NgingFrpUser

func (Slice_NgingFrpUser) AsKV

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

func (Slice_NgingFrpUser) FromList

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

func (Slice_NgingFrpUser) GroupBy

func (s Slice_NgingFrpUser) GroupBy(keyField string) map[string][]*NgingFrpUser

func (Slice_NgingFrpUser) KeyBy

func (s Slice_NgingFrpUser) KeyBy(keyField string) map[string]*NgingFrpUser

func (Slice_NgingFrpUser) Range

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

func (Slice_NgingFrpUser) RangeRaw

func (s Slice_NgingFrpUser) RangeRaw(fn func(m *NgingFrpUser) error) error

func (Slice_NgingFrpUser) Transform

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

Jump to

Keyboard shortcuts

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