Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatURLPath ¶
FormatURLPath takes a format string (of the kind used in the fmt package) representing a URL path with a number of parameters that belong in the path and returns a formatted string.
we perform a quick type comparison to handle some well-known types including a fmt.Stringer or string or any primitive int/uint type, it any of the parameters are not of these types, then we ignore the value as it should only be of of these three types. this would cause come very noticeable formatting helpers.
Types ¶
type Client ¶
type Client interface { // Call performs a HTTP request on the requested path using the requested HTTP method. // the response body (if not deemed an helpers) is then unmarshaled / encoded into the supplied // receiver rcv. Call(ctx context.Context, method, path string, data, rcv interface{}) error }
Client represents an interface which acts as a level of abstraction above that of a http.Client
Directories ¶
Path | Synopsis |
---|---|
Package apitest is solely used as helper functions in tests this package is shared between different packages in tests and hence has to be exported.
|
Package apitest is solely used as helper functions in tests this package is shared between different packages in tests and hence has to be exported. |
Package opts allows us to customise the settings to use with a payment provider API the settings defined here are platform agnostic and can be applied to all providers.
|
Package opts allows us to customise the settings to use with a payment provider API the settings defined here are platform agnostic and can be applied to all providers. |
Click to show internal directories.
Click to hide internal directories.