Documentation ¶
Overview ¶
admin contains extra http endpoints to perform administrative operations on the database. These can be enabled/disabled via the --admin command line flag
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminService ¶
type AdminService struct {
// contains filtered or unexported fields
}
Admin represents an admin service
func (*AdminService) DeleteRepo ¶
func (s *AdminService) DeleteRepo(w http.ResponseWriter, r *http.Request)
DeleteRepo deletes all data from the repo
func (*AdminService) GetRepo ¶
func (s *AdminService) GetRepo(w http.ResponseWriter, r *http.Request)
GetRepo gets basic info from the repo and exposes it over http
func (*AdminService) Routes ¶
func (s *AdminService) Routes() *chi.Mux
Routes returns a router with all routes supported by this service
Click to show internal directories.
Click to hide internal directories.