Documentation ¶
Index ¶
- func AddCrossRegionMiddleware(client *resty.Client) *resty.Client
- func ClearCache()
- func InitCrossRegionConfig(application *aconfig.Application) error
- func MustNewRestyWith(portName aconfig.PortName, appConfig *aconfig.Application, protocol string) *resty.Client
- func NewRestyWith(portName aconfig.PortName, appConfig *aconfig.Application, protocol string) (*resty.Client, error)
- type AuthServer
- type Az
- type Config
- type Location
- type Prop
- type Region
- type RegionResult
- type RegionServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCrossRegionMiddleware ¶
func AddCrossRegionMiddleware(client *resty.Client) *resty.Client
func ClearCache ¶
func ClearCache()
func InitCrossRegionConfig ¶
func InitCrossRegionConfig(application *aconfig.Application) error
func MustNewRestyWith ¶
func MustNewRestyWith(portName aconfig.PortName, appConfig *aconfig.Application, protocol string) *resty.Client
func NewRestyWith ¶
Types ¶
type AuthServer ¶
type AuthServer struct {
Location *Location `json:"location,omitempty"`
}
type Config ¶
type Config struct { AuthServer *AuthServer `json:"auth_server,omitempty"` RegionServer *RegionServer `json:"region_server,omitempty"` }
type Region ¶
type Region struct { RegionCode string `json:"regionCode,omitempty"` RegionName string `json:"regionName,omitempty"` Status int `json:"status,omitempty"` OpsEnv string `json:"opsEnv,omitempty"` OpsArch string `json:"opsArch,omitempty"` Default bool `json:"default,omitempty"` PropMap Prop `json:"propMap,omitempty"` AzList []*Az `json:"azList,omitempty"` }
type RegionResult ¶
type RegionServer ¶
type RegionServer struct {
Location *Location `json:"location,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.