Documentation ¶
Index ¶
- Constants
- func GetFirstElementOf(parent string, children ...string) (key string)
- func Retry(f Retryable, interval time.Duration, attempts int) (int, error)
- func RetryUntilTimeout(f Retryable, interval time.Duration, timeout time.Duration) (int, error)
- func SetPrimitiveValue(input, model interface{}, key string)
- type RequestURL
- type Retryable
Constants ¶
View Source
const DEV = "DEV"
Variables ¶
This section is empty.
Functions ¶
func GetFirstElementOf ¶
func RetryUntilTimeout ¶
Retry is a wrapper to retry functions.
func SetPrimitiveValue ¶
func SetPrimitiveValue(input, model interface{}, key string)
Types ¶
type RequestURL ¶
type RequestURL string
func ConstructRequestURL ¶
func ConstructRequestURL(paths ...string) (url RequestURL)
ConstructRequestURL constructs a request URL based on paths.
func (RequestURL) AppendQueryParams ¶
func (ru RequestURL) AppendQueryParams(queryParameters url.Values) (url RequestURL)
AppendQueryParams appends query parameters to a request URL.
func (RequestURL) String ¶
func (ru RequestURL) String() (urlString string)
String converts a request URL to a string.
Click to show internal directories.
Click to hide internal directories.