Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct { Info CollectionInfo Item []CollectionItem Auth CollectionAuth }
Collection represents a collection of requests
func NewCollection ¶
func NewCollection(name string, items []CollectionItem, auth *CollectionAuth) *Collection
NewCollection returns a new Collection
func (*Collection) ItemWithName ¶
func (c *Collection) ItemWithName(name string) *CollectionItem
ItemWithName gets an item with a particular name
type CollectionAuth ¶
type CollectionAuth struct { Type string Bearer CollectionBearerAuth }
CollectionAuth defines the authentication headers for the collection
type CollectionBearerAuth ¶
CollectionBearerAuth represents bearer token auth
type CollectionInfo ¶
CollectionInfo represents info about a collection
type CollectionItem ¶
CollectionItem represents a request/response in a collection
type EnvMeta ¶
type EnvMeta struct { VariableScope string `json:"_postman_variable_scope"` ExportedAt string `json:"_postman_exported_at"` ExportedUsing string `json:"_postman_exported_using"` }
EnvMeta defines the metadata for an environment
type Environment ¶
Environment defines an execution environment
func EnvironmentFromFile ¶
func EnvironmentFromFile(filepath string) (*Environment, error)
EnvironmentFromFile creates an environment from a file
func (*Environment) VariableMap ¶
func (e *Environment) VariableMap() map[string]string
VariableMap returns a msp[string]string of the environment's variables
type Request ¶
Request represents a request to the endpoint
func RequestFromHTTP ¶
RequestFromHTTP converts an http request to a postman request
type Response ¶
Response describes a response
func (*Response) InflateEnvironmentVariables ¶
InflateEnvironmentVariables for the Response
func (*Response) ToInterface ¶
ToInterface unmarshals a response into an interface