Documentation ¶
Index ¶
Constants ¶
View Source
const ( RT_SERVICE = "service" RT_URL = "url" )
RedirectType
View Source
const ( AT_KEY_AUTH = "key-auth" AT_OAUTH2 = "oauth2" AT_SIGN_AUTH = "sign-auth" AT_ALIYUN_APP = "aliyun-app" )
AuthType
View Source
const ( ACL = "acl" ACL_NONE = "" ACL_ON = "on" ACL_OFF = "off" )
AclType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeLimitsReq ¶
type ChangeLimitsReq struct {
Limits []LimitType `json:"limits"`
}
type ClientInfoDto ¶
type OpenapiDto ¶
type OpenapiDto struct { ApiPath string `json:"apiPath"` RedirectType string `json:"redirectType"` RedirectAddr string `json:"redirectAddr"` RedirectPath string `json:"redirectPath"` RedirectApp string `json:"redirectApp"` RedirectService string `json:"redirectService"` RedirectRuntimeId string `json:"redirectRuntimeId"` RedirectRuntimeName string `json:"redirectRuntimeName"` Method string `json:"method,omitempty"` AllowPassAuth bool `json:"allowPassAuth"` // AclType string `json:"aclType"` Description string `json:"description"` AdjustPath string `json:"-"` AdjustRedirectAddr string `json:"-"` ServiceRewritePath string `json:"-"` IsRegexPath bool `json:"-"` RouteId string `json:"-"` ServiceId string `json:"-"` ZoneId string `json:"-"` ProjectId string `json:"-"` Env string `json:"-"` RuntimeServiceId string `json:"-"` Hosts []string `json:"hosts"` }
func (*OpenapiDto) Adjust ¶
func (dto *OpenapiDto) Adjust() error
func (*OpenapiDto) CheckValid ¶
func (dto *OpenapiDto) CheckValid() (bool, string)
type OpenapiInfoDto ¶
type PackageDto ¶
type PackageDto struct { Name string `json:"name"` BindDomain []string `json:"bindDomain"` AuthType string `json:"authType"` AclType string `json:"aclType"` Scene string `json:"scene"` Description string `json:"description"` NeedBindCloudapi bool `json:"needBindCloudapi"` }
func (PackageDto) CheckValid ¶
func (dto PackageDto) CheckValid() error
type PackageInfoDto ¶
type PackageInfoDto struct { Id string `json:"id"` CreateAt string `json:"createAt"` PackageDto }
type SortBySceneList ¶
type SortBySceneList []PackageInfoDto
func (SortBySceneList) Len ¶
func (list SortBySceneList) Len() int
func (SortBySceneList) Less ¶
func (list SortBySceneList) Less(i, j int) bool
func (SortBySceneList) Swap ¶
func (list SortBySceneList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.