Documentation
¶
Index ¶
- func ToServiceDocument(doc map[string]interface{}) *api.Document
- func ToServiceProxy(proxy *InputProxy) *api.Proxy
- type ApiDetail
- type ApiDocDetail
- type ApiItem
- type ApiProxyDetail
- type ApiSimpleDetail
- type ApiSimpleItem
- type CreateApi
- type EditApi
- type Header
- type InputProxy
- type ListInput
- type Match
- type Proxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToServiceDocument ¶
func ToServiceProxy ¶
func ToServiceProxy(proxy *InputProxy) *api.Proxy
Types ¶
type ApiDetail ¶
type ApiDetail struct { ApiSimpleDetail Proxy *Proxy `json:"proxy"` Doc map[string]interface{} `json:"doc"` }
type ApiDocDetail ¶
type ApiDocDetail struct { ApiSimpleDetail Doc map[string]interface{} `json:"doc"` }
type ApiItem ¶
type ApiItem struct { Id string `json:"id"` Name string `json:"name"` Method string `json:"method"` Path string `json:"request_path"` 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 ApiProxyDetail ¶
type ApiProxyDetail struct { ApiSimpleDetail Proxy *Proxy `json:"proxy"` }
type ApiSimpleDetail ¶
type ApiSimpleDetail 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"` 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 GenApiSimpleDetail ¶
func GenApiSimpleDetail(api *api.Info) *ApiSimpleDetail
type ApiSimpleItem ¶
type CreateApi ¶
type CreateApi struct { Id string `json:"id"` Name string `json:"name"` Path string `json:"path"` Method string `json:"method"` Description string `json:"description"` MatchRules []Match `json:"match"` Proxy *InputProxy `json:"proxy"` }
func (*CreateApi) ToServiceRouter ¶
type EditApi ¶
type EditApi struct { Info struct { Name *string `json:"name"` Description *string `json:"description"` } `json:"info"` Proxy *InputProxy `json:"proxy"` Doc *map[string]interface{} `json:"doc"` }
type InputProxy ¶
Click to show internal directories.
Click to hide internal directories.