Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Info CollectionInfo `json:"info"` Item []FolderItem `json:"item"` }
func NewCollectionFromBytes ¶
func NewCollectionFromBytes(data []byte) (Collection, error)
func (*Collection) GetOrNewFolder ¶
func (col *Collection) GetOrNewFolder(folderName string) FolderItem
func (*Collection) InflateRawURLs ¶
func (col *Collection) InflateRawURLs()
func (*Collection) SetFolder ¶
func (col *Collection) SetFolder(newFolder FolderItem)
type CollectionInfo ¶
type FolderItem ¶
type Request ¶
type Request struct { URL URL `json:"url,omitempty"` Method string `json:"method,omitempty"` Header []Header `json:"header,omitempty"` Body RequestBody `json:"body,omitempty"` Description string `json:"description,omitempty"` }
type RequestBody ¶
type RequestBody struct { Mode string `json:"mode,omitempty"` URLEncoded []URLEncodedParam `json:"urlencoded,omitempty"` }
type URL ¶
type URL struct { Raw string `json:"raw,omitempty"` Protocol string `json:"protocol,omitempty"` Auth map[string]string `json:"auth"` Host []string `json:"host,omitempty"` Path []string `json:"path,omitempty"` Variable []URLVariable `json:"variable,omitempty"` }
func (*URL) AddVariable ¶
type URLEncodedParam ¶
type URLVariable ¶
type URLVariable struct { Value interface{} `json:"value,omitempty"` ID string `json:"id,omitempty"` }
Click to show internal directories.
Click to hide internal directories.