exdto

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

View Source
const (
	OPENAPI_SCENE = "openapi"
	WEBAPI_SCENE  = "webapi"
	UNITY_SCENE   = "unity"
)

Scene

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeLimitsReq

type ChangeLimitsReq struct {
	Limits []LimitType `json:"limits"`
}

type ClientInfoDto

type ClientInfoDto struct {
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

type LimitType

type LimitType struct {
	Day    *int `json:"qpd,omitempty"`
	Hour   *int `json:"qph,omitempty"`
	Minute *int `json:"qpm,omitempty"`
	Second *int `json:"qps,omitempty"`
}

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 OpenapiInfoDto struct {
	ApiId       string `json:"apiId"`
	CreateAt    string `json:"createAt"`
	DiceApp     string `json:"diceApp"`
	DiceService string `json:"diceService"`
	Origin      Origin `json:"origin"`
	Mutable     bool   `json:"mutable"`
	OpenapiDto
}

type Origin

type Origin string
const (
	FROM_DICE   Origin = "dice"
	FROM_CUSTOM Origin = "custom"
	FROM_SHADOW Origin = "shadow"
)

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)

Jump to

Keyboard shortcuts

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