 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToServiceProxy ¶
func ToServiceProxy(proxy *InputProxy) *api.Proxy
Types ¶
type Create ¶
type Create struct {
	Id          string      `json:"id"`
	Name        string      `json:"name"`
	Path        string      `json:"path"`
	Methods     []string    `json:"methods"`
	Description string      `json:"description"`
	Protocols   []string    `json:"protocols"`
	MatchRules  []Match     `json:"match"`
	Upstream    string      `json:"upstream"`
	Proxy       *InputProxy `json:"proxy"`
	Disable     bool        `json:"disabled"`
}
    type Detail ¶
type Detail struct {
	SimpleDetail
	Proxy     *Proxy   `json:"proxy"`
	Protocols []string `json:"protocols"`
	Disable   bool     `json:"disabled"`
}
    type Edit ¶
type Edit struct {
	Name        *string     `json:"name"`
	Description *string     `json:"description"`
	Proxy       *InputProxy `json:"proxy"`
	Path        *string     `json:"path"`
	Methods     *[]string   `json:"methods"`
	Protocols   *[]string   `json:"protocols"`
	MatchRules  *[]Match    `json:"match"`
	Disable     *bool       `json:"disabled"`
	Upstream    *string     `json:"upstream"`
}
    type Export ¶
type Export struct {
	Id          string                 `json:"id"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Method      []string               `json:"method"`
	Path        string                 `json:"path"`
	MatchRules  []Match                `json:"match"`
	Service     string                 `json:"service"`
	Team        string                 `json:"team"`
	Proxy       *Proxy                 `json:"proxy"`
	Doc         map[string]interface{} `json:"doc"`
}
    type InputProxy ¶
type InputSimpleAPI ¶
type InputSimpleAPI struct {
	Services []string `json:"services"`
}
    type Item ¶
type Item struct {
	Id          string         `json:"id"`
	Methods     []string       `json:"methods"`
	Protocols   []string       `json:"protocols"`
	Path        string         `json:"request_path"`
	Description string         `json:"description"`
	Disable     bool           `json:"disabled"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	CanDelete   bool           `json:"can_delete"`
}
    type Proxy ¶
type Proxy struct {
	Path    string                       `json:"path"`
	Timeout int                          `json:"timeout"`
	Retry   int                          `json:"retry"`
	Headers []*Header                    `json:"headers"`
	Extends map[string]any               `json:"extends"`
	Plugins map[string]api.PluginSetting `json:"plugins"`
}
    func FromServiceProxy ¶
type SimpleDetail ¶
type SimpleDetail struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Methods     []string       `json:"methods"`
	Path        string         `json:"path"`
	Protocols   []string       `json:"protocols"`
	MatchRules  []Match        `json:"match"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
}
    func GenSimpleDetail ¶
func GenSimpleDetail(api *api.Info) *SimpleDetail
type SimpleItem ¶
 Click to show internal directories. 
   Click to hide internal directories.