Documentation
¶
Index ¶
- type HttpHandlers
- func (h *HttpHandlers) DeletePaste(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandlers) GetPaste(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandlers) Index(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandlers) NewPaste(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandlers) SetupRoutesWithLogging() http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandlers ¶
type HttpHandlers struct {
// contains filtered or unexported fields
}
func NewHttpHandler ¶
func NewHttpHandler(pasteSrv *services.PasteService, fileSrv *services.FileService, logger *slog.Logger) *HttpHandlers
func (*HttpHandlers) DeletePaste ¶
func (h *HttpHandlers) DeletePaste(w http.ResponseWriter, r *http.Request)
func (*HttpHandlers) GetPaste ¶
func (h *HttpHandlers) GetPaste(w http.ResponseWriter, r *http.Request)
func (*HttpHandlers) Index ¶
func (h *HttpHandlers) Index(w http.ResponseWriter, r *http.Request)
func (*HttpHandlers) NewPaste ¶
func (h *HttpHandlers) NewPaste(w http.ResponseWriter, r *http.Request)
func (*HttpHandlers) SetupRoutesWithLogging ¶
func (h *HttpHandlers) SetupRoutesWithLogging() http.Handler
Click to show internal directories.
Click to hide internal directories.