Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPDoer ¶
type HTTPDoer interface {
SubmitMultipart(method, endpoint string, fields map[string]string, files []MultipartFile) error
SubmitJSON(method, endpoint string, body any) error
}
HTTPDoer is an interface to abstract away the underlying HTTP client logic.
type MultipartFile ¶
type MultipartFile struct {
FieldName string
FileName string
FileReader io.ReadCloser
}
Click to show internal directories.
Click to hide internal directories.