Documentation ¶
Index ¶
- type Auth
- type AuthBasicValue
- type Body
- type Collection
- type CollectionHistoryItem
- type CollectionHistoryItems
- type Env
- type EnvParam
- type Header
- type Headers
- type Info
- type Item
- type ItemContainsPattern
- type Items
- type Metadata
- type PSTCollection
- type PSTCollections
- type PSTEnvironment
- type PSTEnvironments
- type PSTWorkspace
- type PSTWorkspaces
- type Param
- type PostmanCollection
- type PostmanEnvironment
- type Request
- type Url
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { Type string Basic []AuthBasicValue }
type AuthBasicValue ¶
type Collection ¶
func (Collection) FindByMethod ¶
func (c Collection) FindByMethod(method string) Items
FindByMethod finds the items that match with the {method}.
func (Collection) FindItemByLabel ¶
func (c Collection) FindItemByLabel(label string) *Item
FindItemByLabel finds the item that matches with the {label}.
func (Collection) GetMethods ¶
func (c Collection) GetMethods() []string
GetMethods finds the items methods.
func (Collection) SortByName ¶
func (c Collection) SortByName() Collection
SortByName sorts collection items by the {name} field.
type CollectionHistoryItem ¶
type CollectionHistoryItem struct { Item *Item Status string Body []byte Env *Env Params []Param ExecutedAt time.Time }
func (CollectionHistoryItem) GetSuggestDescription ¶
func (i CollectionHistoryItem) GetSuggestDescription() string
GetSuggestDescription builds a descriptionof the collection history items for the prompt.
type CollectionHistoryItems ¶
type CollectionHistoryItems []CollectionHistoryItem
func (CollectionHistoryItems) FindByLabel ¶
func (r CollectionHistoryItems) FindByLabel(label string) *CollectionHistoryItem
FindByLabel finds collection history item that matches with {label}.
func (CollectionHistoryItems) SortByExecutedAt ¶
func (r CollectionHistoryItems) SortByExecutedAt() CollectionHistoryItems
SortByExecutedAt sorts collection history items by {executedAt} field.
type Item ¶
type Item struct { Name string Request Request `json:"request,omitempty"` Items Items `json:"item,omitempty"` }
func (Item) Contains ¶
func (i Item) Contains(pattern string) ItemContainsPattern
func (Item) GetLabel ¶
GetLabel builds the item label "{METHOD}.../{path[len(path)-3:]}" computed field.
type ItemContainsPattern ¶
func (ItemContainsPattern) Contains ¶
func (i ItemContainsPattern) Contains() bool
type Items ¶
type Items []Item
func (Items) SortByLabel ¶
SortByLabel sorts items by the {label} computed field.
func (Items) SortByName ¶
SortByName sorts items by the {name} field.
type PSTCollection ¶
type PSTCollections ¶
type PSTCollections struct {
Collections []PSTCollection
}
type PSTEnvironment ¶
type PSTEnvironments ¶
type PSTEnvironments struct {
Environments []PSTEnvironment
}
type PSTWorkspace ¶
type PSTWorkspaces ¶
type PSTWorkspaces struct {
Workspaces []PSTWorkspace
}
func (PSTWorkspaces) Find ¶
func (w PSTWorkspaces) Find(workspaceIdOrName string) *PSTWorkspace
type PostmanCollection ¶
type PostmanCollection struct {
Collection Collection
}
type PostmanEnvironment ¶
type PostmanEnvironment struct {
Environment Env
}
Click to show internal directories.
Click to hide internal directories.