Documentation
¶
Index ¶
- func NewTlsConfig(caPath, certPath, keyPath string) (*tls.Config, error)
- type Body
- func (b Body) ToArrayJson() ([]et.Json, error)
- func (b Body) ToBool() (bool, error)
- func (b Body) ToFloat() (float64, error)
- func (b Body) ToInt() (int, error)
- func (b Body) ToInt64() (int64, error)
- func (b Body) ToJson() (et.Json, error)
- func (b Body) ToString() string
- func (b Body) ToTime() (time.Time, error)
- type Response
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Body ¶
type Body struct {
Data []byte
}
* * Body struct to convert the body response *
func ReadBody ¶
func ReadBody(body io.ReadCloser) (*Body, error)
* * ReadBody reads the body response * @param body io.ReadCloser * @return *Body * @return error *
func (Body) ToArrayJson ¶
* * ToArrayJson returns a Json array object * @return []et.Json *
type Response ¶ added in v0.1.17
func Fetch ¶ added in v0.1.17
* * Fetch * @param method, url string, header, body et.Json * @return *Response, error *
Click to show internal directories.
Click to hide internal directories.