Documentation
¶
Index ¶
- func Generate(tokenize *Tokenizer)
- func LoadRequest(tokenize *Tokenizer)
- type APIDocs
- type CollectionEvent
- type CollectionInfo
- type CollectionItem
- type CollectionVar
- type EventScript
- type Header
- type QueryParam
- type Request
- type RequestBody
- type RequestURL
- type StructField
- type StructSchema
- type Tokenizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRequest ¶
func LoadRequest(tokenize *Tokenizer)
Types ¶
type APIDocs ¶
type APIDocs struct {
Info CollectionInfo `json:"info"`
Item []CollectionItem `json:"item"`
Variable []CollectionVar `json:"variable"`
}
type CollectionEvent ¶
type CollectionEvent struct {
Listen string `json:"listen"`
Script EventScript `json:"script"`
}
type CollectionInfo ¶
type CollectionItem ¶
type CollectionItem struct {
FunIden string `json:"funIden"`
Name string `json:"name"`
Item []CollectionItem `json:"item,omitempty"`
Request *Request `json:"request,omitempty"`
Response []any `json:"response,omitempty"`
Event []CollectionEvent `json:"event,omitempty"`
ID string `json:"id,omitempty"`
Description string `json:"description,omitempty"`
}
type CollectionVar ¶
type EventScript ¶
type QueryParam ¶
type Request ¶
type Request struct {
FunIden string `json:"funIden"`
Method string `json:"method"`
Header []Header `json:"header"`
Body *RequestBody `json:"body,omitempty"`
URL RequestURL `json:"url"`
Description string `json:"description,omitempty"`
}
type RequestBody ¶
type RequestURL ¶
type RequestURL struct {
Raw string `json:"raw"`
Host []string `json:"host"`
Path []string `json:"path"`
Query []QueryParam `json:"query,omitempty"`
}
type StructField ¶
type StructSchema ¶
type StructSchema struct {
StructName string `json:"struct_name"`
Package string `json:"package"`
File string `json:"file"`
Fields []StructField `json:"fields"`
}
Click to show internal directories.
Click to hide internal directories.