admin

package
v0.0.0-...-84d4e1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: MIT-0 Imports: 3 Imported by: 0

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 New

func New(repo Repo) *AdminService

New creates a new PaymentsService

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL