Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + const CorePath + const ErrRedirectFailed + const ErrRedirectToNotLeader + const ExtensionsPath + func CollectEscapeStringOption(option string, input map[string]interface{}, collectors ...func(v string)) error + func CollectStringOption(option string, input map[string]interface{}, collectors ...func(v string)) error + func DeferClose(c io.Closer, err *error) + func DoDelete(client *http.Client, url string) (int, error) + func ErrorResp(rd *render.Render, w http.ResponseWriter, err error) + func GetComponentNameOnHTTP(r *http.Request) string + func GetIPAddrFromHTTPRequest(r *http.Request) string + func GetJSON(client *http.Client, url string, data []byte) (*http.Response, error) + func GetRouteName(req *http.Request) string + func NewCustomReverseProxies(dialClient *http.Client, urls []url.URL) http.Handler + func ParseKey(name string, input map[string]interface{}) ([]byte, string, error) + func PatchJSON(client *http.Client, url string, data []byte) (*http.Response, error) + func PostJSON(client *http.Client, url string, data []byte) (*http.Response, error) + func PostJSONIgnoreResp(client *http.Client, url string, data []byte) error + func ReadJSON(r io.ReadCloser, data interface{}) error + func ReadJSONRespondError(rd *render.Render, w http.ResponseWriter, body io.ReadCloser, data interface{}) error + func RegisterUserDefinedHandlers(registerMap map[string]http.Handler, group *APIServiceGroup, ...) error + func TagJSONError(err error) error + type APIServiceGroup struct + IsCore bool + Name string + PathPrefix string + Version string + func (sg *APIServiceGroup) Path() string + type AccessPath struct + Method string + Path string + func NewAccessPath(path, method string) AccessPath + type ComponentSignatureRoundTripper struct + func NewComponentSignatureRoundTripper(roundTripper http.RoundTripper, componentName string) *ComponentSignatureRoundTripper + func (rt *ComponentSignatureRoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error) + type FieldError struct + func ParseUint64VarsField(vars map[string]string, varName string) (uint64, *FieldError) + type JSONError struct + Err error + func (e JSONError) Error() string