Documentation
¶
Index ¶
- func CloseFile(file *os.File)
- func FormatStringArray(buf *bytes.Buffer, arr []string, delimiter string) *bytes.Buffer
- func Is2xxSuccessful(r *http.Response) bool
- func Is3xxRedirection(r *http.Response) bool
- func Is4xxClientError(r *http.Response) bool
- func Is5xxServerError(r *http.Response) bool
- func ReadCsv(path string) [][]string
- func SetHeaders(r *http.Request, m map[string]string)
- func WriteToFile(f *os.File, b []byte)
- type FileSettings
- type Transport
- type WebClient
- func (w *WebClient) AddQueryParams(s string, m map[string]string) string
- func (w *WebClient) Delete(url, p string) (*http.Response, error)
- func (w *WebClient) Get(url string) (*http.Response, error)
- func (w *WebClient) Headers(m *map[string]string) *WebClient
- func (w *WebClient) Options(o *WebClientOptions) *WebClient
- func (w *WebClient) Patch(url string, body []byte) (*http.Response, error)
- func (w *WebClient) Post(url string, body []byte) (*http.Response, error)
- func (w *WebClient) Put(url string, body []byte) (*http.Response, error)
- type WebClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStringArray ¶
func Is2xxSuccessful ¶
func Is3xxRedirection ¶
func Is4xxClientError ¶
func Is5xxServerError ¶
func WriteToFile ¶
Types ¶
type FileSettings ¶
type FileSettings struct {
// contains filtered or unexported fields
}
func InitDefaultFileSettings ¶
func InitDefaultFileSettings() *FileSettings
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func InitTransport ¶
func InitTransport() *Transport
func (*Transport) ConnDuration ¶
func (*Transport) ReqDuration ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
func InitWebClient ¶
func InitWebClient() *WebClient
func (*WebClient) AddQueryParams ¶
func (*WebClient) Options ¶
func (w *WebClient) Options(o *WebClientOptions) *WebClient
type WebClientOptions ¶
Click to show internal directories.
Click to hide internal directories.