Documentation ¶
Index ¶
- Constants
- func FsCreate(fs cacher.Fs, name string) (cacher.File, error)
- func FsReadFile(fs cacher.Fs, name string) ([]byte, error)
- func Logger() *logrus.Logger
- func NewCSSResponder(css string) httpmock.Responder
- func NewFs() cacher.Fs
- func NewHTMLMarkup(body string) string
- func NewHTMLResponder(html string) httpmock.Responder
- func NewRedirectResponder(status int, location string) httpmock.Responder
- func NewSlowResponder(duration time.Duration) httpmock.Responder
Constants ¶
View Source
const InvalidURL = `http://[fe80::1%en0]/`
InvalidURL an invalid url as in RFC 6874 Source: https://golang.org/src/net/url/url_test.go
View Source
const TransparentDataURI = `data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`
TransparentDataURI a valid data uri for (probably) the smallest transparent gif Source: http://stackoverflow.com/questions/6018611/smallest-data-uri-image-possible-for-a-transparent-image
Variables ¶
This section is empty.
Functions ¶
func FsReadFile ¶
FsReadFile works similar to os.ReadFile
func NewCSSResponder ¶
NewCSSResponder returns a new responder with css content type
func NewHTMLMarkup ¶
NewHTMLMarkup returns html wraps around given body mark up
func NewHTMLResponder ¶
NewHTMLResponder returns a new responder with html content type
func NewRedirectResponder ¶
NewRedirectResponder returns a new responder with Location header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.