Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWriter ¶
MockWriter is an autogenerated mock type for the Writer type
func NewMockWriter ¶
func NewMockWriter(t interface { mock.TestingT Cleanup(func()) }) *MockWriter
NewMockWriter creates a new instance of MockWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockWriter) WriteHTMLErrorPage ¶
func (_m *MockWriter) WriteHTMLErrorPage(w http.ResponseWriter, r *http.Request, err error)
WriteHTMLErrorPage provides a mock function with given fields: w, r, err
func (*MockWriter) WriteHTMLTemplate ¶
func (_m *MockWriter) WriteHTMLTemplate(w http.ResponseWriter, r *http.Request, status int, template Templater)
WriteHTMLTemplate provides a mock function with given fields: w, r, status, template
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func (*Renderer) WriteHTMLErrorPage ¶
func (*Renderer) WriteHTMLTemplate ¶
Click to show internal directories.
Click to hide internal directories.