Documentation ¶
Index ¶
- type AppDataBase
- type AppDataIngressActionBackend
- type AppDataIngressActionBackendNode
- type AppDataIngressActionStatic
- type AppDataIngressConfig
- type AppDataIngressNamespace
- type AppDataIngressSite
- type AppDataIngressSiteRule
- type AppDataIngressWorker
- type AppDataToken
- type AppDataUser
- type DbModelMongo
- func (this *DbModelMongo) GetCreateTime() string
- func (this *DbModelMongo) GetDataId() string
- func (this *DbModelMongo) GetState() string
- func (this *DbModelMongo) GetTenantId() string
- func (this *DbModelMongo) GetUpdateIp() string
- func (this *DbModelMongo) GetUpdateTime() string
- func (this *DbModelMongo) InitDataId() error
- func (this *DbModelMongo) InitDataIdWithRand(rnd string) error
- func (this *DbModelMongo) SetCreateTime(data string)
- func (this *DbModelMongo) SetDataId(data string)
- func (this *DbModelMongo) SetState(data string)
- func (this *DbModelMongo) SetTenantId(data string)
- func (this *DbModelMongo) SetUpdateIp(data string)
- func (this *DbModelMongo) SetUpdateTime(data string)
- type IDbModelMongo
- type PageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDataBase ¶
type AppDataBase struct {
DbModelMongo `bson:",inline"`
}
func (AppDataBase) GetDbName ¶
func (a AppDataBase) GetDbName() string
type AppDataIngressActionBackend ¶
type AppDataIngressActionBackend struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` Title string `bson:"title" json:"title" index:"uniq"` BalanceType string `bson:"balance_type" json:"balance_type" index:"balance_type"` NodeCount int `bson:"node_count" json:"node_count" index:"node_count"` }
func (*AppDataIngressActionBackend) GetTableName ¶
func (this *AppDataIngressActionBackend) GetTableName() string
type AppDataIngressActionBackendNode ¶
type AppDataIngressActionBackendNode struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` BackendId string `bson:"backend_id" json:"backend_id" index:"backend_id"` Title string `bson:"title" json:"title" index:"uniq"` ServerHost string `bson:"server_host" json:"server_host" index:"server_host"` ServerPort int `bson:"server_port" json:"server_port" index:"server_port"` WeightScore int `bson:"weight_score" json:"weight_score" index:"weight_score"` }
func (*AppDataIngressActionBackendNode) GetTableName ¶
func (this *AppDataIngressActionBackendNode) GetTableName() string
type AppDataIngressActionStatic ¶
type AppDataIngressActionStatic struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` Title string `bson:"title" json:"title" index:"uniq"` ContentType string `bson:"content_type" json:"content_type" index:"content_type"` DataType string `bson:"data_type" json:"data_type"` Data string `bson:"data" json:"data"` }
func (*AppDataIngressActionStatic) GetTableName ¶
func (this *AppDataIngressActionStatic) GetTableName() string
type AppDataIngressConfig ¶
type AppDataIngressConfig struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` Version string `bson:"version" json:"version" index:"version"` Data string `bson:"data" json:"data"` }
func (*AppDataIngressConfig) GetTableName ¶
func (this *AppDataIngressConfig) GetTableName() string
type AppDataIngressNamespace ¶
type AppDataIngressNamespace struct { AppDataBase `bson:",inline"` Title string `bson:"title" json:"title" index:"uniq"` WorkerCount int `bson:"worker_count" json:"worker_count" index:"worker_count"` LastVer string `bson:"last_ver" json:"last_ver" index:"last_ver"` LastPubVer string `bson:"last_pub_ver" json:"last_pub_ver" index:"last_pub_ver"` }
func (*AppDataIngressNamespace) GetTableName ¶
func (this *AppDataIngressNamespace) GetTableName() string
type AppDataIngressSite ¶
type AppDataIngressSite struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` Title string `bson:"title" json:"title" index:"uniq"` OrderNo int `bson:"order_no" json:"order_no" index:"order_no"` AuthNeed string `bson:"auth_need" json:"auth_need" index:"auth_need"` AuthUserName string `bson:"auth_user_name" json:"auth_user_name"` AuthPassword string `bson:"auth_password" json:"auth_password"` MatchOp string `bson:"match_op" json:"match_op"` MatchValue string `bson:"match_value" json:"match_value"` ActionType string `bson:"action_type" json:"action_type" index:"action_type"` ActionValue string `bson:"action_value" json:"action_value" index:"action_value"` }
func (*AppDataIngressSite) GetTableName ¶
func (this *AppDataIngressSite) GetTableName() string
type AppDataIngressSiteRule ¶
type AppDataIngressSiteRule struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` SiteId string `bson:"site_id" json:"site_id" index:"site_id"` Title string `bson:"title" json:"title" index:"uniq"` OrderNo int `bson:"order_no" json:"order_no" index:"order_no"` HttpMethod string `bson:"http_method" json:"http_method"` MatchTarget string `bson:"match_target" json:"match_target"` MatchOp string `bson:"match_op" json:"match_op"` MatchValue string `bson:"match_value" json:"match_value"` ActionType string `bson:"action_type" json:"action_type" index:"action_type"` ActionValue string `bson:"action_value" json:"action_value" index:"action_value"` }
func (*AppDataIngressSiteRule) GetTableName ¶
func (this *AppDataIngressSiteRule) GetTableName() string
type AppDataIngressWorker ¶
type AppDataIngressWorker struct { AppDataBase `bson:",inline"` NamespaceId string `bson:"namespace_id" json:"namespace_id" index:"namespace_id"` NodeToken string `bson:"node_token" json:"node_token" index:"node_token"` NodeName string `bson:"node_name" json:"node_name"` NodeOs string `bson:"node_os" json:"node_os"` NodeArch string `bson:"node_arch" json:"node_arch"` NodeUserName string `bson:"node_user_name" json:"node_user_name"` NodeCpuCore int `bson:"node_cpu_core" json:"node_cpu_core"` NodeCpuUsed float64 `bson:"node_cpu_used" json:"node_cpu_used"` NodeMemTotal uint64 `bson:"node_mem_total" json:"node_mem_total"` NodeMemUsed uint64 `bson:"node_mem_used" json:"node_mem_used"` NodeAddr string `bson:"node_addr" json:"node_addr" index:"node_addr"` NodeLastTime string `bson:"node_last_time" json:"node_last_time" index:"node_last_time"` }
func (*AppDataIngressWorker) GetTableName ¶
func (this *AppDataIngressWorker) GetTableName() string
type AppDataToken ¶
type AppDataToken struct { AppDataBase `bson:",inline"` TokenData string `json:"token_data" bson:"token_data"` AccountId string `json:"account_id" bson:"account_id" index:"account_id"` Username string `json:"username" bson:"username"` Nickname string `json:"nickname" bson:"nickname"` RealName string `json:"real_name" bson:"real_name"` Avatar string `json:"avatar" bson:"avatar"` Role string `json:"role" bson:"role"` LastAliveTime string `bson:"last_alive_time" json:"last_alive_time" index:"last_alive_time"` LastAliveIp string `bson:"last_alive_ip" json:"last_alive_ip" index:"last_alive_ip"` }
func (*AppDataToken) GetTableName ¶
func (this *AppDataToken) GetTableName() string
type AppDataUser ¶
type AppDataUser struct { AppDataBase `bson:",inline"` Username string `bson:"username" json:"username" index:"uniq"` Password string `bson:"password" json:"password"` PwdSalt string `bson:"pwd_salt" json:"pwd_salt"` Nickname string `json:"nickname" bson:"nickname"` RealName string `json:"real_name" bson:"real_name"` Avatar string `json:"avatar" bson:"avatar"` Role string `json:"role" bson:"role"` }
func (*AppDataUser) GetEncryptPassword ¶
func (this *AppDataUser) GetEncryptPassword(passwd string) string
func (*AppDataUser) GetTableName ¶
func (this *AppDataUser) GetTableName() string
type DbModelMongo ¶
type DbModelMongo struct { DataId string `bson:"data_id" json:"data_id" index:"data_id"` TenantId string `bson:"tenant_id" json:"tenant_id" index:"tenant_id"` CreateTime string `bson:"create_time" json:"create_time" index:"create_time"` UpdateTime string `bson:"update_time" json:"update_time" index:"update_time"` UpdateIp string `bson:"update_ip" json:"update_ip" index:"update_ip"` State string `bson:"state" json:"state" index:"state"` }
func (*DbModelMongo) GetCreateTime ¶
func (this *DbModelMongo) GetCreateTime() string
func (*DbModelMongo) GetDataId ¶
func (this *DbModelMongo) GetDataId() string
func (*DbModelMongo) GetState ¶
func (this *DbModelMongo) GetState() string
func (*DbModelMongo) GetTenantId ¶
func (this *DbModelMongo) GetTenantId() string
func (*DbModelMongo) GetUpdateIp ¶
func (this *DbModelMongo) GetUpdateIp() string
func (*DbModelMongo) GetUpdateTime ¶
func (this *DbModelMongo) GetUpdateTime() string
func (*DbModelMongo) InitDataId ¶
func (this *DbModelMongo) InitDataId() error
func (*DbModelMongo) InitDataIdWithRand ¶
func (this *DbModelMongo) InitDataIdWithRand(rnd string) error
func (*DbModelMongo) SetCreateTime ¶
func (this *DbModelMongo) SetCreateTime(data string)
func (*DbModelMongo) SetDataId ¶
func (this *DbModelMongo) SetDataId(data string)
func (*DbModelMongo) SetState ¶
func (this *DbModelMongo) SetState(data string)
func (*DbModelMongo) SetTenantId ¶
func (this *DbModelMongo) SetTenantId(data string)
func (*DbModelMongo) SetUpdateIp ¶
func (this *DbModelMongo) SetUpdateIp(data string)
func (*DbModelMongo) SetUpdateTime ¶
func (this *DbModelMongo) SetUpdateTime(data string)
type IDbModelMongo ¶
type IDbModelMongo interface { GetDbName() string GetTableName() string InitDataId() error SetDataId(data string) GetDataId() string SetTenantId(data string) GetTenantId() string SetCreateTime(data string) GetCreateTime() string SetUpdateTime(data string) GetUpdateTime() string SetUpdateIp(data string) GetUpdateIp() string SetState(data string) GetState() string }
Source Files ¶
- app_data_base.go
- app_data_ingress_action_backend.go
- app_data_ingress_action_backend_node.go
- app_data_ingress_action_static.go
- app_data_ingress_config.go
- app_data_ingress_namespace.go
- app_data_ingress_site.go
- app_data_ingress_site_rule.go
- app_data_ingress_worker.go
- app_data_token.go
- app_data_user.go
- dbmodel.go
- dbmodel_mongo.go
Click to show internal directories.
Click to hide internal directories.