Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableProfiles ¶
GetAvailableProfiles return the name of all profiles available in the configured directory
func GetAvailableRequests ¶
GetAvailableRequests returns a list of all the names of requests available in a profile.
func GetProfilesDir ¶
GetProfilesDir return the directory where profiles are stored
Types ¶
type Options ¶
type Options struct {
BaseURL string
Headers map[string][]string
RequestOptions map[string]RequestOptions
Variables map[string]string
}
Options that can come from a profile file.
func LoadProfile ¶
LoadProfile loads Options for a specific profile by name.
func MergeOptions ¶
MergeOptions merges all options passed in into a final Options object.
type RequestOptions ¶
RequestOptions is a representation of a request that can be loaded from a profile.
func LoadRequestOptions ¶
func LoadRequestOptions(requestNameToFind string, profiles []string) (*RequestOptions, error)
LoadRequestOptions loads request configurations from the profile names passed in. It returns an error if it doesn't find a request configuration with the specified name. It will return the last request options found, if the same name is found in multiple profiles.