Versions in this module Expand all Collapse all v1 v1.0.0 Oct 29, 2021 Changes in this version + const PLUGIN_FIELD_CLEAR_BOTH + const PLUGIN_FIELD_CLEAR_LEFT + const PLUGIN_FIELD_CLEAR_NONE + const PLUGIN_FIELD_CLEAR_RIGHT + const PLUGIN_FIELD_DISPLAY_BLOCK + const PLUGIN_FIELD_DISPLAY_INLINE + const PLUGIN_FIELD_TYPE_CHECKBOX + const PLUGIN_FIELD_TYPE_INPUT + const PLUGIN_FIELD_TYPE_RADIO + const PLUGIN_FIELD_TYPE_SELECT + const PLUGIN_FIELD_TYPE_SWITCH + const PLUGIN_FIELD_TYPE_TEXTAREA + const PLUGIN_POSITION_AUTH + const PLUGIN_POSITION_HIDDEN + const PLUGIN_POSITION_LOADBALANCE + const PLUGIN_POSITION_NORMAL + type APPAddHttpInput struct + AppID string + Name string + Qpd int64 + Qps int64 + Secret string + WhiteIPS string + func (params *APPAddHttpInput) GetValidParams(c *gin.Context) error + type APPDetailInput struct + ID int64 + func (params *APPDetailInput) GetValidParams(c *gin.Context) error + type APPListInput struct + Info string + PageNo int + PageSize int + func (params *APPListInput) GetValidParams(c *gin.Context) error + type APPListItemOutput struct + AppID string + CreatedAt time.Time + ID int64 + IsDelete int8 + Name string + Qpd int64 + Qps int64 + RealQpd int64 + RealQps int64 + Secret string + UpdatedAt time.Time + WhiteIPS string + type APPListOutput struct + List []APPListItemOutput + Total int64 + type APPUpdateHttpInput struct + AppID string + ID int64 + Name string + Qpd int64 + Qps int64 + Secret string + WhiteIPS string + func (params *APPUpdateHttpInput) GetValidParams(c *gin.Context) error + type Admin struct + CreatedAt time.Time + Id int + IsDelete int + Password string + Salt string + UpdatedAt time.Time + UserName string + func (t *Admin) Find(c *gin.Context, tx *gorm.DB, search *Admin) (*Admin, error) + func (t *Admin) LoginCheck(c *gin.Context, tx *gorm.DB, param *AdminLoginInput) (*Admin, error) + func (t *Admin) Save(c *gin.Context, tx *gorm.DB) error + func (t *Admin) TableName() string + type AdminInfoOutput struct + Avatar string + ID int + Introduction string + LoginTime time.Time + Name string + Roles []string + type AdminLoginInput struct + Password string + UserName string + func (param *AdminLoginInput) BindValidParam(c *gin.Context) error + type AdminLoginOutput struct + Token string + type AdminSessionInfo struct + ID int + LoginTime time.Time + UserName string + type App struct + AppID string + CreatedAt time.Time + ID int64 + IsDelete int8 + Name string + Qpd int64 + Qps int64 + Secret string + UpdatedAt time.Time + WhiteIPS string + func (t *App) APPList(c *gin.Context, tx *gorm.DB, params *APPListInput) ([]App, int64, error) + func (t *App) Find(c *gin.Context, tx *gorm.DB, search *App) (*App, error) + func (t *App) Save(c *gin.Context, tx *gorm.DB) error + func (t *App) TableName() string + type ChangePwdInput struct + Password string + func (param *ChangePwdInput) BindValidParam(c *gin.Context) error + type DashServiceStatItemOutput struct + LoadType int + Name string + Value int64 + type DashServiceStatOutput struct + Data []DashServiceStatItemOutput + Legend []string + type HTTPProxyMiddleware interface + Configration func() + GetConfig func() *PluginConfig + Handler func(c *gin.Context) + type PanelGroupDataOutput struct + AppNum int64 + CurrentQPS int64 + ServiceNum int64 + TodayRequestNum int64 + type PluginConfig struct + DisplayName string + Items []PluginItemConfig + Postion PluginPosition + Sort int + UniqueName string + type PluginConfigs struct + GRCP []PluginConfig + HTTP []PluginConfig + TCP []PluginConfig + func GetPluginConfig() (*PluginConfigs, error) + type PluginFieldClear string + type PluginFieldDisplay string + type PluginFieldType string + type PluginItemConfig struct + FieldClear PluginFieldClear + FieldDefaultValue string + FieldDisplay PluginFieldDisplay + FieldDisplayName string + FieldOption string + FieldPlaceholder string + FieldRequired bool + FieldType PluginFieldType + FieldUniqueName string + FieldValidRule string + FieldValue string + type PluginPosition string + type ServiceAddGrpcInput struct + BlackList string + ClientIPFlowLimit int + ForbidList string + HeaderTransfor string + IpList string + OpenAuth int + Port int + RoundType int + ServiceDesc string + ServiceFlowLimit int + ServiceName string + WeightList string + WhiteHostName string + WhiteList string + func (params *ServiceAddGrpcInput) GetValidParams(c *gin.Context) error + type ServiceAddInput struct + AuthType string + HTTPHosts string + HTTPPaths string + LoadBalanceStrategy string + LoadBalanceType string + LoadType int + NeedStripUri int + PluginConf string + Port int + ServiceDesc string + ServiceName string + UpstreamList string + func (param *ServiceAddInput) BindValidParam(c *gin.Context) error + type ServiceAddTcpInput struct + BlackList string + ClientIPFlowLimit int + ForbidList string + HeaderTransfor string + IpList string + OpenAuth int + Port int + RoundType int + ServiceDesc string + ServiceFlowLimit int + ServiceName string + WeightList string + WhiteHostName string + WhiteList string + func (params *ServiceAddTcpInput) GetValidParams(c *gin.Context) error + type ServiceDeleteInput struct + ID int64 + func (param *ServiceDeleteInput) BindValidParam(c *gin.Context) error + type ServiceDetail struct + Info *ServiceInfo + PluginConf *simplejson.Json + func GetServiceDetailFromGinContext(c *gin.Context) (*ServiceDetail, error) + type ServiceDetailInput struct + ID int64 + func (param *ServiceDetailInput) BindValidParam(c *gin.Context) error + type ServiceInfo struct + AuthType string + CreatedAt time.Time + HTTPHosts string + HTTPPaths string + HttpStripPrefix int + ID int64 + IsDelete int8 + LoadBalanceStrategy string + LoadBalanceType string + PluginConf string + ServiceDesc string + ServiceName string + ServicePort int + ServiceType int + UpdatedAt time.Time + UpstreamList string + func (t *ServiceInfo) Delete(c *gin.Context, tx *gorm.DB, search *ServiceInfo) error + func (t *ServiceInfo) Find(c *gin.Context, tx *gorm.DB, search *ServiceInfo) (*ServiceInfo, error) + func (t *ServiceInfo) GroupByLoadType(c *gin.Context, tx *gorm.DB) ([]DashServiceStatItemOutput, error) + func (t *ServiceInfo) PageList(c *gin.Context, tx *gorm.DB, param *ServiceListInput) ([]ServiceInfo, int64, error) + func (t *ServiceInfo) Save(c *gin.Context, tx *gorm.DB) error + func (t *ServiceInfo) ServiceDetail(c *gin.Context, tx *gorm.DB, info *ServiceInfo) (*ServiceDetail, error) + func (t *ServiceInfo) TableName() string + type ServiceListInput struct + Info string + PageNo int + PageSize int + func (param *ServiceListInput) BindValidParam(c *gin.Context) error + type ServiceListItemOutput struct + ActiveNode int + ID int64 + LoadType int + Qpd int64 + Qps int64 + ServiceAddr string + ServiceDesc string + ServiceName string + TotalNode int + type ServiceListOutput struct + List []ServiceListItemOutput + Total int64 + type ServiceStatOutput struct + Today []int64 + Yesterday []int64 + type ServiceUpdateGrpcInput struct + BlackList string + ClientIPFlowLimit int + ForbidList string + HeaderTransfor string + ID int64 + IpList string + OpenAuth int + Port int + RoundType int + ServiceDesc string + ServiceFlowLimit int + ServiceName string + WeightList string + WhiteHostName string + WhiteList string + func (params *ServiceUpdateGrpcInput) GetValidParams(c *gin.Context) error + type ServiceUpdateInput struct + AuthType string + HTTPHosts string + HTTPPaths string + ID int64 + LoadBalanceStrategy string + LoadBalanceType string + LoadType int + NeedStripUri int + PluginConf string + Port int + ServiceDesc string + ServiceName string + UpstreamList string + func (param *ServiceUpdateInput) BindValidParam(c *gin.Context) error + type ServiceUpdateTcpInput struct + BlackList string + ClientIPFlowLimit int + ForbidList string + ID int64 + IpList string + OpenAuth int + Port int + RoundType int + ServiceDesc string + ServiceFlowLimit int + ServiceName string + WeightList string + WhiteHostName string + WhiteList string + func (params *ServiceUpdateTcpInput) GetValidParams(c *gin.Context) error + type StatisticsOutput struct + Today []int64 + Yesterday []int64 + type TokensInput struct + GrantType string + Scope string + func (param *TokensInput) BindValidParam(c *gin.Context) error + type TokensOutput struct + AccessToken string + ExpiresIn int + Scope string + TokenType string + type UpstreamConfig struct + IpList []string + IpWeight map[string]string + Schema string + func GetUpstreamConfigFromString(upstreamList string) (*UpstreamConfig, error)