Documentation ¶
Index ¶
- type HTTPHandler
- func (h *HTTPHandler) GetRequest(ctx context.Context, respResource interface{}, reqPath string, ...) (respDetails models.ResponseDetails, err error)
- func (h *HTTPHandler) PostJSONReq(ctx context.Context, postResource models.Validatable, respResource interface{}, ...) (respDetails models.ResponseDetails, err error)
- func (h *HTTPHandler) PostMultipartReq(ctx context.Context, postResource models.MultipartValidatable, ...) (respDetails models.ResponseDetails, err error)
- func (h *HTTPHandler) PutJSONReq(ctx context.Context, putResource models.Validatable, respResource interface{}, ...) (respDetails models.ResponseDetails, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHandler ¶
func (*HTTPHandler) GetRequest ¶
func (h *HTTPHandler) GetRequest( ctx context.Context, respResource interface{}, reqPath string, queryParams map[string]string, ) (respDetails models.ResponseDetails, err error)
func (*HTTPHandler) PostJSONReq ¶ added in v1.1.0
func (h *HTTPHandler) PostJSONReq( ctx context.Context, postResource models.Validatable, respResource interface{}, reqPath string, ) (respDetails models.ResponseDetails, err error)
func (*HTTPHandler) PostMultipartReq ¶ added in v1.1.0
func (h *HTTPHandler) PostMultipartReq( ctx context.Context, postResource models.MultipartValidatable, respResource interface{}, reqPath string, ) (respDetails models.ResponseDetails, err error)
func (*HTTPHandler) PutJSONReq ¶ added in v1.2.0
func (h *HTTPHandler) PutJSONReq( ctx context.Context, putResource models.Validatable, respResource interface{}, reqPath string, queryParams map[string]string, ) (respDetails models.ResponseDetails, err error)
Click to show internal directories.
Click to hide internal directories.