Documentation
¶
Index ¶
- Variables
- func PoolsList2Map(list []*TPools) map[int64]*TPools
- func TBfeClusterCreate(dbCtx lib.DBContexter, data ...*TBfeClusterParam) (int64, error)
- func TBfeClusterDelete(dbCtx lib.DBContexter, where *TBfeClusterParam) (int64, error)
- func TBfeClusterUpdate(dbCtx lib.DBContexter, val, where *TBfeClusterParam) (int64, error)
- func TCertificateCreate(dbCtx lib.DBContexter, data ...*TCertificateParam) (int64, error)
- func TCertificateDelete(dbCtx lib.DBContexter, where *TCertificateParam) (int64, error)
- func TCertificateUpdate(dbCtx lib.DBContexter, val, where *TCertificateParam) (int64, error)
- func TClusterCreate(dbCtx lib.DBContexter, data ...*TClusterParam) (int64, error)
- func TClusterDelete(dbCtx lib.DBContexter, where *TClusterParam) (int64, error)
- func TClusterUpdate(dbCtx lib.DBContexter, val, where *TClusterParam) (int64, error)
- func TConfigVersionCreate(dbCtx lib.DBContexter, data ...*TConfigVersionParam) (int64, error)
- func TConfigVersionDelete(dbCtx lib.DBContexter, where *TConfigVersionParam) (int64, error)
- func TConfigVersionUpdate(dbCtx lib.DBContexter, val, where *TConfigVersionParam) (int64, error)
- func TDomainCreate(dbCtx lib.DBContexter, data ...*TDomainParam) (int64, error)
- func TDomainDelete(dbCtx lib.DBContexter, where *TDomainParam) (int64, error)
- func TDomainUpdate(dbCtx lib.DBContexter, val, where *TDomainParam) (int64, error)
- func TExtraFileCreate(dbCtx lib.DBContexter, data ...*TExtraFileParam) (int64, error)
- func TExtraFileDelete(dbCtx lib.DBContexter, where *TExtraFileParam) (int64, error)
- func TExtraFileUpdate(dbCtx lib.DBContexter, val, where *TExtraFileParam) (int64, error)
- func TLbMatrixCreate(dbCtx lib.DBContexter, data ...*TLbMatrixParam) (int64, error)
- func TLbMatrixDelete(dbCtx lib.DBContexter, where *TLbMatrixParam) (int64, error)
- func TLbMatrixUpdate(dbCtx lib.DBContexter, val, where *TLbMatrixParam) (int64, error)
- func TPoolsCreate(dbCtx lib.DBContexter, data ...*TPoolsParam) (int64, error)
- func TPoolsDelete(dbCtx lib.DBContexter, where *TPoolsParam) (int64, error)
- func TPoolsUpdate(dbCtx lib.DBContexter, val, where *TPoolsParam) (int64, error)
- func TProductCreate(dbCtx lib.DBContexter, data ...*TProductParam) (int64, error)
- func TProductDelete(dbCtx lib.DBContexter, where *TProductParam) (int64, error)
- func TProductDeleteByProductID(dbCtx lib.DBContexter, productID int64) error
- func TProductUpdate(dbCtx lib.DBContexter, val, where *TProductParam) (int64, error)
- func TRouteAdvanceRuleCreate(dbCtx lib.DBContexter, data ...*TRouteAdvanceRuleParam) (int64, error)
- func TRouteAdvanceRuleDelete(dbCtx lib.DBContexter, where *TRouteAdvanceRuleParam) (int64, error)
- func TRouteAdvanceRuleUpdate(dbCtx lib.DBContexter, val, where *TRouteAdvanceRuleParam) (int64, error)
- func TRouteBasicRuleCreate(dbCtx lib.DBContexter, data ...*TRouteBasicRuleParam) (int64, error)
- func TRouteBasicRuleDelete(dbCtx lib.DBContexter, where *TRouteBasicRuleParam) (int64, error)
- func TRouteBasicRuleUpdate(dbCtx lib.DBContexter, val, where *TRouteBasicRuleParam) (int64, error)
- func TSubClusterCreate(dbCtx lib.DBContexter, data ...*TSubClusterParam) (int64, error)
- func TSubClusterDelete(dbCtx lib.DBContexter, where *TSubClusterParam) (int64, error)
- func TSubClusterUpdate(dbCtx lib.DBContexter, val, where *TSubClusterParam) (int64, error)
- func TUserCreate(dbCtx lib.DBContexter, data ...*TUserParam) (int64, error)
- func TUserDelete(dbCtx lib.DBContexter, where *TUserParam) (int64, error)
- func TUserProductCreate(dbCtx lib.DBContexter, data ...*TUserProductParam) (int64, error)
- func TUserProductDelete(dbCtx lib.DBContexter, where *TUserProductParam) (int64, error)
- func TUserProductUpdate(dbCtx lib.DBContexter, val, where *TUserProductParam) (int64, error)
- func TUserUpdate(dbCtx lib.DBContexter, val, where *TUserParam) (int64, error)
- type TBfeCluster
- type TBfeClusterParam
- type TCertificate
- type TCertificateParam
- type TCluster
- type TClusterParam
- type TConfigVersion
- type TConfigVersionParam
- type TDomain
- type TDomainParam
- type TExtraFile
- type TExtraFileParam
- type TLbMatrix
- type TLbMatrixParam
- type TPools
- type TPoolsParam
- type TProduct
- type TProductParam
- type TRouteAdvanceRule
- type TRouteAdvanceRuleParam
- type TRouteBasicRule
- type TRouteBasicRuleParam
- type TSubCluster
- type TSubClusterParam
- type TUser
- type TUserParam
- type TUserProduct
- type TUserProductParam
Constants ¶
This section is empty.
Variables ¶
var (
DomainTypeGeneral int32 = 7
)
var (
ModeForUpdate = "exclusive"
)
Functions ¶
func PoolsList2Map ¶
func TBfeClusterCreate ¶
func TBfeClusterCreate(dbCtx lib.DBContexter, data ...*TBfeClusterParam) (int64, error)
TBfeClusterCreate One/Multiple
func TBfeClusterDelete ¶
func TBfeClusterDelete(dbCtx lib.DBContexter, where *TBfeClusterParam) (int64, error)
TBfeClusterDelete Delete One/Multiple
func TBfeClusterUpdate ¶
func TBfeClusterUpdate(dbCtx lib.DBContexter, val, where *TBfeClusterParam) (int64, error)
TBfeClusterUpdate Update One
func TCertificateCreate ¶
func TCertificateCreate(dbCtx lib.DBContexter, data ...*TCertificateParam) (int64, error)
TCertificateCreate One/Multiple
func TCertificateDelete ¶
func TCertificateDelete(dbCtx lib.DBContexter, where *TCertificateParam) (int64, error)
TCertificateDelete Delete One/Multiple
func TCertificateUpdate ¶
func TCertificateUpdate(dbCtx lib.DBContexter, val, where *TCertificateParam) (int64, error)
TCertificateUpdate Update One
func TClusterCreate ¶
func TClusterCreate(dbCtx lib.DBContexter, data ...*TClusterParam) (int64, error)
TClusterCreate One/Multiple
func TClusterDelete ¶
func TClusterDelete(dbCtx lib.DBContexter, where *TClusterParam) (int64, error)
TClusterDelete Delete One/Multiple
func TClusterUpdate ¶
func TClusterUpdate(dbCtx lib.DBContexter, val, where *TClusterParam) (int64, error)
TClusterUpdate Update One
func TConfigVersionCreate ¶
func TConfigVersionCreate(dbCtx lib.DBContexter, data ...*TConfigVersionParam) (int64, error)
TConfigVersionCreate One/Multiple
func TConfigVersionDelete ¶
func TConfigVersionDelete(dbCtx lib.DBContexter, where *TConfigVersionParam) (int64, error)
TConfigVersionDelete Delete One/Multiple
func TConfigVersionUpdate ¶
func TConfigVersionUpdate(dbCtx lib.DBContexter, val, where *TConfigVersionParam) (int64, error)
TConfigVersionUpdate Update One
func TDomainCreate ¶
func TDomainCreate(dbCtx lib.DBContexter, data ...*TDomainParam) (int64, error)
TDomainCreate One/Multiple
func TDomainDelete ¶
func TDomainDelete(dbCtx lib.DBContexter, where *TDomainParam) (int64, error)
TDomainDelete Delete One/Multiple
func TDomainUpdate ¶
func TDomainUpdate(dbCtx lib.DBContexter, val, where *TDomainParam) (int64, error)
TDomainUpdate Update One
func TExtraFileCreate ¶
func TExtraFileCreate(dbCtx lib.DBContexter, data ...*TExtraFileParam) (int64, error)
TExtraFileCreate One/Multiple
func TExtraFileDelete ¶
func TExtraFileDelete(dbCtx lib.DBContexter, where *TExtraFileParam) (int64, error)
TExtraFileDelete Delete One/Multiple
func TExtraFileUpdate ¶
func TExtraFileUpdate(dbCtx lib.DBContexter, val, where *TExtraFileParam) (int64, error)
TExtraFileUpdate Update One
func TLbMatrixCreate ¶
func TLbMatrixCreate(dbCtx lib.DBContexter, data ...*TLbMatrixParam) (int64, error)
TLbMatrixCreate One/Multiple
func TLbMatrixDelete ¶
func TLbMatrixDelete(dbCtx lib.DBContexter, where *TLbMatrixParam) (int64, error)
TLbMatrixDelete Delete One/Multiple
func TLbMatrixUpdate ¶
func TLbMatrixUpdate(dbCtx lib.DBContexter, val, where *TLbMatrixParam) (int64, error)
TLbMatrixUpdate Update One
func TPoolsCreate ¶
func TPoolsCreate(dbCtx lib.DBContexter, data ...*TPoolsParam) (int64, error)
TPoolsCreate One/Multiple
func TPoolsDelete ¶
func TPoolsDelete(dbCtx lib.DBContexter, where *TPoolsParam) (int64, error)
TPoolsDelete Delete One/Multiple
func TPoolsUpdate ¶
func TPoolsUpdate(dbCtx lib.DBContexter, val, where *TPoolsParam) (int64, error)
TPoolsUpdate Update One
func TProductCreate ¶
func TProductCreate(dbCtx lib.DBContexter, data ...*TProductParam) (int64, error)
TProductCreate One/Multiple
func TProductDelete ¶
func TProductDelete(dbCtx lib.DBContexter, where *TProductParam) (int64, error)
TProductDelete Delete One/Multiple
func TProductDeleteByProductID ¶
func TProductDeleteByProductID(dbCtx lib.DBContexter, productID int64) error
func TProductUpdate ¶
func TProductUpdate(dbCtx lib.DBContexter, val, where *TProductParam) (int64, error)
TProductUpdate Update One
func TRouteAdvanceRuleCreate ¶
func TRouteAdvanceRuleCreate(dbCtx lib.DBContexter, data ...*TRouteAdvanceRuleParam) (int64, error)
TRouteAdvanceRuleCreate One/Multiple
func TRouteAdvanceRuleDelete ¶
func TRouteAdvanceRuleDelete(dbCtx lib.DBContexter, where *TRouteAdvanceRuleParam) (int64, error)
TRouteAdvanceRuleDelete Delete One/Multiple
func TRouteAdvanceRuleUpdate ¶
func TRouteAdvanceRuleUpdate(dbCtx lib.DBContexter, val, where *TRouteAdvanceRuleParam) (int64, error)
TRouteAdvanceRuleUpdate Update One
func TRouteBasicRuleCreate ¶
func TRouteBasicRuleCreate(dbCtx lib.DBContexter, data ...*TRouteBasicRuleParam) (int64, error)
TRouteBasicRuleCreate One/Multiple
func TRouteBasicRuleDelete ¶
func TRouteBasicRuleDelete(dbCtx lib.DBContexter, where *TRouteBasicRuleParam) (int64, error)
TRouteBasicRuleDelete Delete One/Multiple
func TRouteBasicRuleUpdate ¶
func TRouteBasicRuleUpdate(dbCtx lib.DBContexter, val, where *TRouteBasicRuleParam) (int64, error)
TRouteBasicRuleUpdate Update One
func TSubClusterCreate ¶
func TSubClusterCreate(dbCtx lib.DBContexter, data ...*TSubClusterParam) (int64, error)
TSubClusterCreate One/Multiple
func TSubClusterDelete ¶
func TSubClusterDelete(dbCtx lib.DBContexter, where *TSubClusterParam) (int64, error)
TSubClusterDelete Delete One/Multiple
func TSubClusterUpdate ¶
func TSubClusterUpdate(dbCtx lib.DBContexter, val, where *TSubClusterParam) (int64, error)
TSubClusterUpdate Update One
func TUserCreate ¶
func TUserCreate(dbCtx lib.DBContexter, data ...*TUserParam) (int64, error)
TUserCreate One/Multiple
func TUserDelete ¶
func TUserDelete(dbCtx lib.DBContexter, where *TUserParam) (int64, error)
TUserDelete Delete One/Multiple
func TUserProductCreate ¶
func TUserProductCreate(dbCtx lib.DBContexter, data ...*TUserProductParam) (int64, error)
TUserProductCreate One/Multiple
func TUserProductDelete ¶
func TUserProductDelete(dbCtx lib.DBContexter, where *TUserProductParam) (int64, error)
TUserProductDelete Delete One/Multiple
func TUserProductUpdate ¶
func TUserProductUpdate(dbCtx lib.DBContexter, val, where *TUserProductParam) (int64, error)
TUserProductUpdate Update One
func TUserUpdate ¶
func TUserUpdate(dbCtx lib.DBContexter, val, where *TUserParam) (int64, error)
TUserUpdate Update One
Types ¶
type TBfeCluster ¶
type TBfeCluster struct {
ID int64 `db:"id"`
Name string `db:"name"`
PoolName string `db:"pool_name"`
Capacity int64 `db:"capacity"`
Enabled bool `db:"enabled"`
GtcEnabled bool `db:"gtc_enabled"`
GtcManualEnabled bool `db:"gtc_manual_enabled"`
ExemptTrafficCheck bool `db:"exempt_traffic_check"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TBfeCluster Query Result
func TBfeClusterList ¶
func TBfeClusterList(dbCtx lib.DBContexter, where *TBfeClusterParam) ([]*TBfeCluster, error)
TBfeClusterList Query Multiple
func TBfeClusterOne ¶
func TBfeClusterOne(dbCtx lib.DBContexter, where *TBfeClusterParam) (*TBfeCluster, error)
TBfeClusterOne Query One return (nil, nil) if record not existed
type TBfeClusterParam ¶
type TBfeClusterParam struct {
ID *int64 `db:"id"`
Name *string `db:"name"`
PoolName *string `db:"pool_name"`
Capacity *int64 `db:"capacity"`
Enabled *bool `db:"enabled"`
GtcEnabled *bool `db:"gtc_enabled"`
GtcManualEnabled *bool `db:"gtc_manual_enabled"`
ExemptTrafficCheck *bool `db:"exempt_traffic_check"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TBfeClusterParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TCertificate ¶
type TCertificate struct {
ID int64 `db:"id"`
CertName string `db:"cert_name"`
Description string `db:"description"`
IsDefault bool `db:"is_default"`
ExpiredDate string `db:"expired_date"`
CertFileName string `db:"cert_file_name"`
CertFilePath string `db:"cert_file_path"`
KeyFileName string `db:"key_file_name"`
KeyFilePath string `db:"key_file_path"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TCertificate Query Result
func TCertificateList ¶
func TCertificateList(dbCtx lib.DBContexter, where *TCertificateParam) ([]*TCertificate, error)
TCertificateList Query Multiple
func TCertificateOne ¶
func TCertificateOne(dbCtx lib.DBContexter, where *TCertificateParam) (*TCertificate, error)
TCertificateOne Query One return (nil, nil) if record not existed
type TCertificateParam ¶
type TCertificateParam struct {
ID *int64 `db:"id"`
CertName *string `db:"cert_name"`
Description *string `db:"description"`
IsDefault *bool `db:"is_default"`
ExpiredDate *string `db:"expired_date"`
CertFileName *string `db:"cert_file_name"`
CertFilePath *string `db:"cert_file_path"`
KeyFileName *string `db:"key_file_name"`
KeyFilePath *string `db:"key_file_path"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TCertificateParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TCluster ¶
type TCluster struct {
ID int64 `db:"id"`
Name string `db:"name"`
Description string `db:"description"`
ProductID int64 `db:"product_id"`
MaxIdleConnPerHost int16 `db:"max_idle_conn_per_host"`
TimeoutConnServ int32 `db:"timeout_conn_serv"`
TimeoutResponseHeader int32 `db:"timeout_response_header"`
TimeoutReadbodyClient int32 `db:"timeout_readbody_client"`
TimeoutReadClientAgain int32 `db:"timeout_read_client_again"`
TimeoutWriteClient int32 `db:"timeout_write_client"`
HealthcheckSchem string `db:"healthcheck_schem"`
HealthcheckInterval int32 `db:"healthcheck_interval"`
HealthcheckFailnum int32 `db:"healthcheck_failnum"`
HealthcheckHost string `db:"healthcheck_host"`
HealthcheckUri string `db:"healthcheck_uri"`
HealthcheckStatuscode int32 `db:"healthcheck_statuscode"`
ClientipCarry bool `db:"clientip_carry"`
PortCarry bool `db:"port_carry"`
MaxRetryInCluster int8 `db:"max_retry_in_cluster"`
MaxRetryCrossCluster int8 `db:"max_retry_cross_cluster"`
Ready bool `db:"ready"`
HashStrategy int32 `db:"hash_strategy"`
CookieKey string `db:"cookie_key"`
HashHeader string `db:"hash_header"`
SessionSticky bool `db:"session_sticky"`
ReqWriteBufferSize int32 `db:"req_write_buffer_size"`
ReqFlushInterval int32 `db:"req_flush_interval"`
ResFlushInterval int32 `db:"res_flush_interval"`
CancelOnClientClose bool `db:"cancel_on_client_close"`
FailureStatus bool `db:"failure_status"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TCluster Query Result
func TClusterList ¶
func TClusterList(dbCtx lib.DBContexter, where *TClusterParam) ([]*TCluster, error)
TClusterList Query Multiple
func TClusterOne ¶
func TClusterOne(dbCtx lib.DBContexter, where *TClusterParam) (*TCluster, error)
TClusterOne Query One return (nil, nil) if record not existed
type TClusterParam ¶
type TClusterParam struct {
IDs []int64 `db:"id,in"`
ID *int64 `db:"id"`
Name *string `db:"name"`
Names []string `db:"name,in"`
Description *string `db:"description"`
ProductID *int64 `db:"product_id"`
MaxIdleConnPerHost *int16 `db:"max_idle_conn_per_host"`
TimeoutConnServ *int32 `db:"timeout_conn_serv"`
TimeoutResponseHeader *int32 `db:"timeout_response_header"`
TimeoutReadbodyClient *int32 `db:"timeout_readbody_client"`
TimeoutReadClientAgain *int32 `db:"timeout_read_client_again"`
TimeoutWriteClient *int32 `db:"timeout_write_client"`
HealthcheckSchem *string `db:"healthcheck_schem"`
HealthcheckInterval *int32 `db:"healthcheck_interval"`
HealthcheckFailnum *int32 `db:"healthcheck_failnum"`
HealthcheckHost *string `db:"healthcheck_host"`
HealthcheckUri *string `db:"healthcheck_uri"`
HealthcheckStatuscode *int32 `db:"healthcheck_statuscode"`
ClientipCarry *bool `db:"clientip_carry"`
PortCarry *bool `db:"port_carry"`
MaxRetryInCluster *int8 `db:"max_retry_in_cluster"`
MaxRetryCrossCluster *int8 `db:"max_retry_cross_cluster"`
Ready *bool `db:"ready"`
HashStrategy *int32 `db:"hash_strategy"`
CookieKey *string `db:"cookie_key"`
HashHeader *string `db:"hash_header"`
SessionSticky *bool `db:"session_sticky"`
ReqWriteBufferSize *int32 `db:"req_write_buffer_size"`
ReqFlushInterval *int32 `db:"req_flush_interval"`
ResFlushInterval *int32 `db:"res_flush_interval"`
CancelOnClientClose *bool `db:"cancel_on_client_close"`
FailureStatus *bool `db:"failure_status"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TClusterParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TConfigVersion ¶
type TConfigVersion struct {
ID int64 `db:"id"`
Name string `db:"name"`
DataSign string `db:"data_sign"`
Version string `db:"version"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TConfigVersion Query Result
func TConfigVersionList ¶
func TConfigVersionList(dbCtx lib.DBContexter, where *TConfigVersionParam) ([]*TConfigVersion, error)
TConfigVersionList Query Multiple
func TConfigVersionOne ¶
func TConfigVersionOne(dbCtx lib.DBContexter, where *TConfigVersionParam) (*TConfigVersion, error)
TConfigVersionOne Query One return (nil, nil) if record not existed
type TConfigVersionParam ¶
type TConfigVersionParam struct {
ID *int64 `db:"id"`
Name *string `db:"name"`
DataSign *string `db:"data_sign"`
Version *string `db:"version"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TConfigVersionParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TDomain ¶
type TDomain struct {
ID int64 `db:"id"`
Name string `db:"name"`
ProductID int64 `db:"product_id"`
Type int32 `db:"type"`
UsingAdvancedRedirect int8 `db:"using_advanced_redirect"`
UsingAdvancedHsts int8 `db:"using_advanced_hsts"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TDomain Query Result
func TDomainList ¶
func TDomainList(dbCtx lib.DBContexter, where *TDomainParam) ([]*TDomain, error)
TDomainList Query Multiple
func TDomainOne ¶
func TDomainOne(dbCtx lib.DBContexter, where *TDomainParam) (*TDomain, error)
TDomainOne Query One return (nil, nil) if record not existed
type TDomainParam ¶
type TDomainParam struct {
ID *int64 `db:"id"`
Name *string `db:"name"`
ProductID *int64 `db:"product_id"`
Type *int32 `db:"type"`
UsingAdvancedRedirect *int8 `db:"using_advanced_redirect"`
UsingAdvancedHsts *int8 `db:"using_advanced_hsts"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TDomainParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TExtraFile ¶
type TExtraFile struct {
ID int64 `db:"id"`
Name string `db:"name"`
ProductID int64 `db:"product_id"`
Description string `db:"description"`
Md5 []byte `db:"md5"`
Content []byte `db:"content"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TExtraFile Query Result
func TExtraFileList ¶
func TExtraFileList(dbCtx lib.DBContexter, where *TExtraFileParam) ([]*TExtraFile, error)
TExtraFileList Query Multiple
func TExtraFileOne ¶
func TExtraFileOne(dbCtx lib.DBContexter, where *TExtraFileParam) (*TExtraFile, error)
TExtraFileOne Query One return (nil, nil) if record not existed
type TExtraFileParam ¶
type TExtraFileParam struct {
ID *int64 `db:"id"`
Name *string `db:"name"`
Names []string `db:"name,in"`
ProductID *int64 `db:"product_id"`
Description *string `db:"description"`
Md5 []byte `db:"md5"`
Content []byte `db:"content"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TExtraFileParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TLbMatrix ¶
type TLbMatrix struct {
ClusterID int64 `db:"cluster_id"`
LbMatrix string `db:"lb_matrix"`
ProductID int64 `db:"product_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TLbMatrix Query Result
func TLbMatrixList ¶
func TLbMatrixList(dbCtx lib.DBContexter, where *TLbMatrixParam) ([]*TLbMatrix, error)
TLbMatrixList Query Multiple
func TLbMatrixOne ¶
func TLbMatrixOne(dbCtx lib.DBContexter, where *TLbMatrixParam) (*TLbMatrix, error)
TLbMatrixOne Query One return (nil, nil) if record not existed
type TLbMatrixParam ¶
type TLbMatrixParam struct {
ClusterIDs []int64 `db:"cluster_id,in"`
ClusterID *int64 `db:"cluster_id"`
LbMatrix *string `db:"lb_matrix"`
ProductID *int64 `db:"product_id"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TLbMatrixParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TPools ¶
type TPools struct {
Id int64 `db:"id"`
Name string `db:"name"`
Ready bool `db:"ready"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
ProductId int64 `db:"product_id"`
Type int8 `db:"type"`
InstanceDetail string `db:"instance_detail"`
Tag int8 `db:"tag"`
}
TPools Query Result
func TPoolsList ¶
func TPoolsList(dbCtx lib.DBContexter, where *TPoolsParam) ([]*TPools, error)
TPoolsList Query Multiple
func TPoolsOne ¶
func TPoolsOne(dbCtx lib.DBContexter, where *TPoolsParam) (*TPools, error)
TPoolsOne Query One
type TPoolsParam ¶
type TPoolsParam struct {
Ids []int64 `db:"id,in"`
Id *int64 `db:"id"`
Name *string `db:"name"`
Ready *bool `db:"ready"`
ProductID *int64 `db:"product_id"`
Type *int8 `db:"type"`
InstanceDetail *string `db:"instance_detail"`
Tag *int8 `db:"tag"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TPoolsParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TProduct ¶
type TProduct struct {
Id int64 `db:"id"`
Name string `db:"name"`
NoahId int64 `db:"noah_id"`
NoahPath string `db:"noah_path"`
PdbId int64 `db:"pdb_id"`
PdbPath string `db:"pdb_path"`
MailList string `db:"mail_list"`
Owner string `db:"owner"`
IamAccountId string `db:"iam_account_id"`
ContactPerson string `db:"contact_person"`
SmsList string `db:"sms_list"`
GtcPriority int32 `db:"gtc_priority"`
RouteConfigId int64 `db:"route_config_id"`
Description string `db:"description"`
IsInner bool `db:"is_inner"`
IsRdqaTest bool `db:"is_rdqa_test"`
ExpiredDate string `db:"expired_date"`
IsOffline bool `db:"is_offline"`
IsInternational bool `db:"is_international"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TProduct Query Result
func TProductList ¶
func TProductList(dbCtx lib.DBContexter, where *TProductParam) ([]*TProduct, error)
TProductList Query Multiple
func TProductOne ¶
func TProductOne(dbCtx lib.DBContexter, where *TProductParam) (*TProduct, error)
TProductOne Query One
type TProductParam ¶
type TProductParam struct {
Id *int64 `db:"id"`
IDs []int64 `db:"id,in"`
NeId *int64 `db:"id,!="`
Name *string `db:"name"`
NoahId *int64 `db:"noah_id"`
NoahPath *string `db:"noah_path"`
PdbId *int64 `db:"pdb_id"`
PdbPath *string `db:"pdb_path"`
MailList *string `db:"mail_list"`
Owner *string `db:"owner"`
IamAccountId *string `db:"iam_account_id"`
ContactPerson *string `db:"contact_person"`
SmsList *string `db:"sms_list"`
GtcPriority *int32 `db:"gtc_priority"`
RouteConfigId *int64 `db:"route_config_id"`
Description *string `db:"description"`
IsInner *bool `db:"is_inner"`
IsRdqaTest *bool `db:"is_rdqa_test"`
ExpiredDate *string `db:"expired_date"`
IsOffline *bool `db:"is_offline"`
IsInternational *bool `db:"is_international"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TProductParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TRouteAdvanceRule ¶
type TRouteAdvanceRule struct {
ID int64 `db:"id"`
Name string `db:"name"`
Description string `db:"description"`
ProductID int64 `db:"product_id"`
Expression string `db:"expression"`
ClusterID int64 `db:"cluster_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TRouteAdvanceRule Query Result
func TRouteAdvanceRuleList ¶
func TRouteAdvanceRuleList(dbCtx lib.DBContexter, where *TRouteAdvanceRuleParam) ([]*TRouteAdvanceRule, error)
TRouteAdvanceRuleList Query Multiple
func TRouteAdvanceRuleOne ¶
func TRouteAdvanceRuleOne(dbCtx lib.DBContexter, where *TRouteAdvanceRuleParam) (*TRouteAdvanceRule, error)
TRouteAdvanceRuleOne Query One return (nil, nil) if record not existed
type TRouteAdvanceRuleParam ¶
type TRouteAdvanceRuleParam struct {
ID *int64 `db:"id"`
Name *string `db:"name"`
Description *string `db:"description"`
ProductID *int64 `db:"product_id"`
ProductIDs []int64 `db:"product_id,in"`
ClusterID *int64 `db:"cluster_id"`
Expression *string `db:"expression"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
LockMode *string `db:"_lockMode"`
}
TRouteAdvanceRuleParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TRouteBasicRule ¶
type TRouteBasicRule struct {
ID int64 `db:"id"`
Description string `db:"description"`
ProductID int64 `db:"product_id"`
HostNames []byte `db:"host_names"`
Paths []byte `db:"paths"`
ClusterID int64 `db:"cluster_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TRouteBasicRule Query Result
func TRouteBasicRuleList ¶
func TRouteBasicRuleList(dbCtx lib.DBContexter, where *TRouteBasicRuleParam) ([]*TRouteBasicRule, error)
TRouteBasicRuleList Query Multiple
func TRouteBasicRuleOne ¶
func TRouteBasicRuleOne(dbCtx lib.DBContexter, where *TRouteBasicRuleParam) (*TRouteBasicRule, error)
TRouteBasicRuleOne Query One return (nil, nil) if record not existed
type TRouteBasicRuleParam ¶
type TRouteBasicRuleParam struct {
ID *int64 `db:"id"`
Description *string `db:"description"`
ProductID *int64 `db:"product_id"`
ProductIDs []int64 `db:"product_id,in"`
HostNames []byte `db:"host_names"`
Paths []byte `db:"paths"`
ClusterID *int64 `db:"cluster_id"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TRouteBasicRuleParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TSubCluster ¶
type TSubCluster struct {
ID int64 `db:"id"`
Name string `db:"name"`
ClusterID int64 `db:"cluster_id"`
ProductID int64 `db:"product_id"`
Description string `db:"description"`
PoolsID int64 `db:"bns_name_id"`
Enabled bool `db:"enabled"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TSubCluster Query Result
func TSubClusterList ¶
func TSubClusterList(dbCtx lib.DBContexter, where *TSubClusterParam) ([]*TSubCluster, error)
TSubClusterList Query Multiple
func TSubClusterOne ¶
func TSubClusterOne(dbCtx lib.DBContexter, where *TSubClusterParam) (*TSubCluster, error)
TSubClusterOne Query One
type TSubClusterParam ¶
type TSubClusterParam struct {
IDs []int64 `db:"id,in"`
ID *int64 `db:"id"`
Name *string `db:"name"`
Names []string `db:"name,in"`
ClusterID *int64 `db:"cluster_id"`
ClusterIDs []int64 `db:"cluster_id,in"`
ProductID *int64 `db:"product_id"`
Description *string `db:"description"`
PoolsID *int64 `db:"bns_name_id"`
PoolsIDs []int64 `db:"bns_name_id,in"`
Enabled *bool `db:"enabled"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TSubClusterParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TUser ¶
type TUser struct {
ID int64 `db:"id"`
Name string `db:"name"`
SessionKey string `db:"session_key"`
SessionKeyCreatedAt time.Time `db:"session_key_created_at"`
Roles string `db:"roles"`
Password string `db:"password"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TUser Query Result
func TUserList ¶
func TUserList(dbCtx lib.DBContexter, where *TUserParam) ([]*TUser, error)
TUserList Query Multiple
func TUserOne ¶
func TUserOne(dbCtx lib.DBContexter, where *TUserParam) (*TUser, error)
TUserOne Query One return (nil, nil) if record not existed
type TUserParam ¶
type TUserParam struct {
IDs []int64 `db:"id,in"`
ID *int64 `db:"id"`
Name *string `db:"name"`
SessionKey *string `db:"session_key"`
SessionKeyCreatedAt *time.Time `db:"session_key_created_at"`
Roles *string `db:"roles"`
Password *string `db:"password"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TUserParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md
type TUserProduct ¶
type TUserProduct struct {
UserID int64 `db:"user_id"`
ProductID int64 `db:"product_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
TUserProduct Query Result
func TUserProductList ¶
func TUserProductList(dbCtx lib.DBContexter, where *TUserProductParam) ([]*TUserProduct, error)
TUserProductList Query Multiple
func TUserProductOne ¶
func TUserProductOne(dbCtx lib.DBContexter, where *TUserProductParam) (*TUserProduct, error)
TUserProductOne Query One return (nil, nil) if record not existed
type TUserProductParam ¶
type TUserProductParam struct {
UserID *int64 `db:"user_id"`
ProductID *int64 `db:"product_id"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
OrderBy *string `db:"_orderby"`
}
TUserProductParamCreate/Update/Where Data Carrier See: https://github.com/didi/gendry/blob/master/builder/README.md