Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func CreateRouter(server *HTTPServer) (*mux.Router, error)
Types ¶
type HTTPServer ¶
type HTTPServer struct {
DB *DB
}
func NewHTTPServer ¶
func NewHTTPServer(db *DB) *HTTPServer
func (*HTTPServer) GetItems ¶
func (s *HTTPServer) GetItems(w http.ResponseWriter, r *http.Request, vars map[string]string) error
type HttpApiFunc ¶
Click to show internal directories.
Click to hide internal directories.