Versions in this module Expand all Collapse all v1 v1.1.0 Sep 21, 2023 Changes in this version + func GetScheme(req *http.Request) string + func HeaderCopyTo(src, dst http.Header) + func RemoveHopHeaders(header http.Header) + func SetupGracefulStop(srv *http.Server) + func Shutdown(srv *http.Server) + type Client struct + func NewClient(endpoint string, resourcePath string) *Client + func (rc *Client) Create(spec interface{}) error + func (rc *Client) Delete(name string) error + func (rc *Client) Find(name string, result interface{}) error + func (rc *Client) FindAll(query url.Values, result interface{}) error + func (rc *Client) Update(spec interface{}) error + type JSONResponse struct + Code int + Data interface{} + Msg string + func BindJSONResponse(data []byte) *JSONResponse + func NewJSONResponse(data interface{}) *JSONResponse + func (e *JSONResponse) Error() error + type Resty struct + func NewResty(baseURL string) *Resty + func (x *Resty) Create(resource string, body interface{}) error + func (x *Resty) Delete(resource string) error + func (x *Resty) Get(resource string, v interface{}) error + func (x *Resty) Update(resource string, body interface{}) error + type ReverseProxy struct + func NewReverseProxy(target *url.URL, header http.Header) *ReverseProxy