Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { Type AuthType `json:"type"` OAuth2 *OAuth2Auth `json:"oauth2,omitempty"` APIKey []KeyValue `json:"apikey,omitempty"` }
type AuthType ¶
type AuthType string
const ( AuthTypeNone AuthType = "none" AuthTypeBasic AuthType = "basic" AuthTypeBearer AuthType = "bearer" AuthTypeDigest AuthType = "digest" AuthTypeEdgeGrid AuthType = "edgegrid" AuthTypeHawk AuthType = "hawk" AuthTypeOAuth1 AuthType = "oauth1" AuthTypeOAuth2 AuthType = "oauth2" AuthTypeNTLM AuthType = "ntlm" )
type Body ¶
type Body struct { Mode BodyMode `json:"mode"` Raw string `json:"raw,omitempty"` Urlencoded []KeyValue `json:"urlencoded,omitempty"` FormData []KeyValue `json:"formdata,omitempty"` File *File `json:"file,omitempty"` Options *BodyOptions `json:"options,omitempty"` }
func (*Body) SetLanguage ¶
type BodyOptions ¶
type BodyOptions struct {
Raw *RawOptions `json:"raw,omitempty"`
}
type Collection ¶
type Collection struct { Info Info `json:"info"` Item []*Item `json:"item"` Auth *Auth `json:"auth,omitempty"` Event []*Event `json:"event,omitempty"` Variable []*Variable `json:"variable,omitempty"` }
func NewCollection ¶
func NewCollection(name string, description string) *Collection
func (*Collection) AddAPI ¶
func (c *Collection) AddAPI(item Item)
func (*Collection) AppendItem ¶
func (c *Collection) AppendItem(item Item)
func (*Collection) CreateFolder ¶
func (c *Collection) CreateFolder(name, description string) *Item
func (*Collection) SetVariable ¶
func (c *Collection) SetVariable(key, value, description string)
func (*Collection) ToJson ¶
func (c *Collection) ToJson() ([]byte, error)
type Item ¶
type Item struct { Name string `json:"name"` Description string `json:"description,omitempty"` Request *Request `json:"request,omitempty"` Response []*Response `json:"response,omitempty"` ProtocolProfileBehavior *ProtocolProfileBehavior `json:"protocolProfileBehavior,omitempty"` Item []*Item `json:"item,omitempty"` // Nested items for folders Event []*Event `json:"event,omitempty"` Variable []*Variable `json:"variable,omitempty"` }
func (*Item) AppendItem ¶
func (*Item) CreateFolder ¶
func (*Item) SetVariable ¶
type OAuth2Auth ¶
type ProtocolProfileBehavior ¶
type ProtocolProfileBehavior struct {
DisableBodyPruning bool `json:"disableBodyPruning,omitempty"`
}
type RawOptions ¶
type RawOptions struct {
Language string `json:"language"`
}
Click to show internal directories.
Click to hide internal directories.