Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorHandler ¶
type ErrorHandler struct{}
ErrorHandler is an HTTP handler that always responds with an Internal Server Error.
func (*ErrorHandler) Reset ¶
func (h *ErrorHandler) Reset()
func (*ErrorHandler) ServeHTTP ¶
func (h *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IPFSAddHandler ¶
type IPFSAddHandler struct{}
IPFSAddHandler is an HTTP handler that mocks the /api/v0/add enpoint of an IPFS Node.
func (*IPFSAddHandler) Reset ¶
func (h *IPFSAddHandler) Reset()
func (*IPFSAddHandler) ServeHTTP ¶
func (h *IPFSAddHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IPFSDAGImportErrorHandler ¶
type IPFSDAGImportErrorHandler struct{}
IPFSDAGImportErrorHandler is an HTTP handler that returns PinErrorMsg for the /api/v0/dag/import enpoint.
func (*IPFSDAGImportErrorHandler) Reset ¶
func (h *IPFSDAGImportErrorHandler) Reset()
func (*IPFSDAGImportErrorHandler) ServeHTTP ¶
func (h *IPFSDAGImportErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IPFSDAGImportHandler ¶
type IPFSDAGImportHandler struct{}
IPFSDAGImportHandler is an HTTP handler that mocks the /api/v0/dag/import enpoint of an IPFS Node.
func (*IPFSDAGImportHandler) Reset ¶
func (h *IPFSDAGImportHandler) Reset()
func (*IPFSDAGImportHandler) ServeHTTP ¶
func (h *IPFSDAGImportHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IPFSDAGImportNoRootHandler ¶
type IPFSDAGImportNoRootHandler struct{}
IPFSDAGImportNoRootHandler is an HTTP handler that does not return root CID for the /api/v0/dag/import enpoint.
func (*IPFSDAGImportNoRootHandler) Reset ¶
func (h *IPFSDAGImportNoRootHandler) Reset()
func (*IPFSDAGImportNoRootHandler) ServeHTTP ¶
func (h *IPFSDAGImportNoRootHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IPFSPinRmHandler ¶
IPFSPinRmHandler is an HTTP handler that mocks the /api/v0/pin/rm enpoint of an IPFS Node.
func (*IPFSPinRmHandler) Reset ¶
func (h *IPFSPinRmHandler) Reset()
func (*IPFSPinRmHandler) ServeHTTP ¶
func (h *IPFSPinRmHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type NoopHandler ¶
type NoopHandler struct{}
NoopHandler is an HTTP handler that does not do anything.
func (*NoopHandler) Reset ¶
func (h *NoopHandler) Reset()
func (*NoopHandler) ServeHTTP ¶
func (h *NoopHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ResettableHandler ¶
ResettableHandler is an HTTP handler that can reset its internal state.