Documentation ¶
Index ¶
- type AuthFailureHandler
- type FakeDebugPrinter
- type FakeHandler
- func (fh *FakeHandler) Call()
- func (fh *FakeHandler) Close()
- func (fh *FakeHandler) GetAuthHeader() string
- func (fh *FakeHandler) GetLastURL() string
- func (fh *FakeHandler) Reset()
- func (fh *FakeHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- func (fh *FakeHandler) SetAuthHeader(authHeader string)
- func (fh *FakeHandler) SetLastURL(url string)
- func (fh *FakeHandler) WasCalled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFailureHandler ¶
type AuthFailureHandler struct {
Message string
}
func (AuthFailureHandler) ServeHTTP ¶
func (failer AuthFailureHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type FakeDebugPrinter ¶
type FakeDebugPrinter struct {
Messages []*fakeDebugPrinterMessage
}
func (*FakeDebugPrinter) Print ¶
func (p *FakeDebugPrinter) Print(title, body string)
type FakeHandler ¶
type FakeHandler struct { GenerateHandler func(chan []byte) http.Handler InputChan chan []byte Fail bool ContentLen string sync.RWMutex // contains filtered or unexported fields }
func (*FakeHandler) Call ¶
func (fh *FakeHandler) Call()
func (*FakeHandler) Close ¶
func (fh *FakeHandler) Close()
func (*FakeHandler) GetAuthHeader ¶
func (fh *FakeHandler) GetAuthHeader() string
func (*FakeHandler) GetLastURL ¶
func (fh *FakeHandler) GetLastURL() string
func (*FakeHandler) Reset ¶
func (fh *FakeHandler) Reset()
func (*FakeHandler) ServeHTTP ¶
func (fh *FakeHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*FakeHandler) SetAuthHeader ¶
func (fh *FakeHandler) SetAuthHeader(authHeader string)
func (*FakeHandler) SetLastURL ¶
func (fh *FakeHandler) SetLastURL(url string)
func (*FakeHandler) WasCalled ¶
func (fh *FakeHandler) WasCalled() bool
Click to show internal directories.
Click to hide internal directories.