Documentation ¶
Index ¶
- func DeleteRequest(ctx context.Context, returnValuePointer interface{}, baseUrl string, ...) errors.EdgeX
- func FromContext(ctx context.Context, key string) string
- func GetRequest(ctx context.Context, returnValuePointer interface{}, baseUrl string, ...) errors.EdgeX
- func PatchRequest(ctx context.Context, returnValuePointer interface{}, url string, ...) errors.EdgeX
- func PostByFileRequest(ctx context.Context, returnValuePointer interface{}, url string, ...) errors.EdgeX
- func PostRequest(ctx context.Context, returnValuePointer interface{}, url string, ...) errors.EdgeX
- func PutByFileRequest(ctx context.Context, returnValuePointer interface{}, url string, ...) errors.EdgeX
- func PutRequest(ctx context.Context, returnValuePointer interface{}, url string, ...) errors.EdgeX
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRequest ¶ added in v0.1.126
func DeleteRequest(ctx context.Context, returnValuePointer interface{}, baseUrl string, requestPath string) errors.EdgeX
Helper method to make the delete request and return the body
func FromContext ¶
FromContext allows for the retrieval of the specified key's value from the supplied Context. If the value is not found, an empty string is returned.
func GetRequest ¶
func GetRequest(ctx context.Context, returnValuePointer interface{}, baseUrl string, requestPath string, requestParams url.Values) errors.EdgeX
Helper method to make the get request and return the body
func PatchRequest ¶ added in v0.1.133
func PatchRequest( ctx context.Context, returnValuePointer interface{}, url string, data interface{}) errors.EdgeX
PatchRequest makes a PATCH request and unmarshals the response to the returnValuePointer
func PostByFileRequest ¶ added in v0.1.124
func PostByFileRequest( ctx context.Context, returnValuePointer interface{}, url string, filePath string) errors.EdgeX
Helper method to make the post file request and return the body
func PostRequest ¶ added in v0.1.115
func PostRequest( ctx context.Context, returnValuePointer interface{}, url string, data interface{}) errors.EdgeX
Helper method to make the post JSON request and return the body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.