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 Detail ¶
type Detail struct { SimpleDetail Proxy *Proxy `json:"proxy"` Protocols []string `json:"protocols"` Disable bool `json:"disable"` }
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 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:"disable"` 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.