Documentation ¶
Index ¶
- func GetByUrl[T any](url string, cfg conf.CenterApi) (T, error)
- func GetByUrls[T any](ctx *ctx.Context, path string) (T, error)
- func PostByUrl(url string, cfg conf.CenterApi, v interface{}) (err error)
- func PostByUrls(ctx *ctx.Context, path string, v interface{}) (err error)
- func PostJSON(url string, timeout time.Duration, v interface{}, retries ...int) (response []byte, code int, err error)
- type DataResponse
- type PostResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataResponse ¶
type PostResponse ¶
type PostResponse struct {
Err string `json:"err"`
}
Click to show internal directories.
Click to hide internal directories.