Versions in this module Expand all Collapse all v0 v0.0.1 Oct 3, 2016 Changes in this version + func Clear() error + func Disable() + func Enable() + func Gen(api API) error + func Init(newProject Project) error + func IsDisabled() bool + func PrettyPrint(in []byte) ([]byte, error) + type API struct + RequestBody string + RequestHeaders map[string]string + RequestMethod string + RequestPath string + RequestPostForms map[string]string + RequestSuppressedHeaders map[string]bool + RequestURLParams map[string]string + ResponseBody string + ResponseHeaders map[string]string + ResponseStatusCode int + ResponseSuppressedHeaders map[string]bool + func NewAPI() API + func (a *API) ReadRequest(req *http.Request, throwErr bool) error + func (a *API) ReadRequestBody(req *http.Request) error + func (a *API) ReadRequestHeader(httpHeader http.Header) error + func (a *API) ReadRequestURLParams(uri string) error + func (a *API) ReadResponseHeader(httpHeader http.Header) error + func (a *API) SuppressedRequestHeaders(headers ...string) + func (a *API) SuppressedResponseHeaders(headers ...string) + func (a *API) WrapResponseBody(body []byte) error + type Project struct + APIs []API + DocumentPath string + DocumentTitle string + TemplatePath string