Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Api ¶
type Api interface { CreateHandler(w http.ResponseWriter, r *http.Request) GetHandler(w http.ResponseWriter, r *http.Request) GetAllHandler(w http.ResponseWriter, r *http.Request) }
Api interface
type CreateRequest ¶
CreateRequest ... example: {"data": {"title": "duayen", "url": "https://murat.duayen.dev"}}
type ErrResponse ¶
type ErrResponse struct { Err error `json:"-"` StatusCode int `json:"-"` StatusText string `json:"status"` ErrorText string `json:"error,omitempty"` }
ErrResponse ...
func (*ErrResponse) Render ¶
func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) error
Render ...
type ListResponse ¶
ListResponse ...
func (*ListResponse) Render ¶
func (e *ListResponse) Render(_ http.ResponseWriter, _ *http.Request) error
Render ...
Click to show internal directories.
Click to hide internal directories.