Documentation
¶
Index ¶
- func NewHttpClient() *http.Client
- func ToPrettyJson(body []byte) (string, error)
- type HttpGetManager
- type HttpPostManager
- type SamHttpGetManager
- type SamHttpPostManager
- func (s SamHttpPostManager) Bytes(url string, data []byte) ([]byte, error)
- func (s SamHttpPostManager) File(remoteUrl string, directory string, filename string) (string, error)
- func (s SamHttpPostManager) FileWithDefaultName(remoteUrl string, directory string) (string, error)
- func (s SamHttpPostManager) PrettyJson(url string, data []byte) (string, error)
- func (s SamHttpPostManager) Zip(remoteUrl string, directory string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
func ToPrettyJson ¶
Types ¶
type HttpGetManager ¶
type HttpGetManager interface {
Bytes(url string) ([]byte, error)
PrettyJson(url string) (string, error)
Type(url string, target interface{}) error
}
func NewHttpGetManager ¶
func NewHttpGetManager() HttpGetManager
type HttpPostManager ¶
type HttpPostManager interface {
Bytes(url string, data []byte) ([]byte, error)
PrettyJson(url string, data []byte) (string, error)
FileWithDefaultName(remoteUrl string, directory string) (string, error)
File(remoteUrl string, directory string, filename string) (string, error)
Zip(remoteUrl string, directory string) (string, error)
}
func NewHttpPostManager ¶
func NewHttpPostManager() HttpPostManager
type SamHttpGetManager ¶
type SamHttpGetManager struct {
// contains filtered or unexported fields
}
func (SamHttpGetManager) PrettyJson ¶
func (s SamHttpGetManager) PrettyJson(url string) (string, error)
func (SamHttpGetManager) Type ¶
func (s SamHttpGetManager) Type(url string, target interface{}) error
type SamHttpPostManager ¶
type SamHttpPostManager struct {
// contains filtered or unexported fields
}
func (SamHttpPostManager) Bytes ¶
func (s SamHttpPostManager) Bytes(url string, data []byte) ([]byte, error)
func (SamHttpPostManager) FileWithDefaultName ¶
func (s SamHttpPostManager) FileWithDefaultName(remoteUrl string, directory string) (string, error)
func (SamHttpPostManager) PrettyJson ¶
func (s SamHttpPostManager) PrettyJson(url string, data []byte) (string, error)
Click to show internal directories.
Click to hide internal directories.