Documentation ¶
Index ¶
- func AddApiFacts(who ApiFacts, prefix string, router *mux.Router)
- func AuthorHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func BestTagsHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func BlockHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func BulletinHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func EndorsementHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func Handler(prefix string, db *pubrecdb.PublicRecord) http.Handler
- func MostEndoHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func NearbyLocHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func NewHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func NewStatsHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func RangeHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- func Router(prefix string, db *pubrecdb.PublicRecord) *mux.Router
- func StatusHandler(db *pubrecdb.PublicRecord, start time.Time) func(http.ResponseWriter, *http.Request)
- func TagHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
- type ApiFacts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorHandler ¶
func AuthorHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func BestTagsHandler ¶
func BestTagsHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func BlockHandler ¶
func BlockHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func BulletinHandler ¶
func BulletinHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func EndorsementHandler ¶
func EndorsementHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func MostEndoHandler ¶
func MostEndoHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func NearbyLocHandler ¶
func NearbyLocHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func NewHandler ¶
func NewHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func NewStatsHandler ¶
func NewStatsHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func RangeHandler ¶
func RangeHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
func Router ¶
func Router(prefix string, db *pubrecdb.PublicRecord) *mux.Router
returns the http handler initialized with the api's routes. The prefix should start and end with slashes. For example /api/ is a good prefix.
func StatusHandler ¶
func StatusHandler(db *pubrecdb.PublicRecord, start time.Time) func(http.ResponseWriter, *http.Request)
func TagHandler ¶
func TagHandler(db *pubrecdb.PublicRecord) func(http.ResponseWriter, *http.Request)
Handles serving a bulletin board.
Types ¶
Click to show internal directories.
Click to hide internal directories.