Documentation
¶
Overview ¶
Package server serves the REST API over HTTP.
Index ¶
- func New(addr string, h http.Handler) *http.Server
- type Handler
- func (h *Handler) CreateRow(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteRow(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRow(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListRows(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListTables(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OpenAPI(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Routes() http.Handler
- func (h *Handler) UpdateRow(w http.ResponseWriter, r *http.Request)
- type HandlerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(s store.Store, cfg HandlerConfig) *Handler
func (*Handler) ListTables ¶
func (h *Handler) ListTables(w http.ResponseWriter, r *http.Request)
type HandlerConfig ¶
Click to show internal directories.
Click to hide internal directories.