Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetReads(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleChallenge(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleInbox(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleOutbox(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Read(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Register(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SearchBooks(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
A Handler accepts http requests.
func (*Handler) Authenticate ¶
func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request)
Authenticate will validate a user's password and, if correct, return a JWT
func (*Handler) GetReads ¶
func (h *Handler) GetReads(w http.ResponseWriter, r *http.Request)
GetReads returns a list of books a user has read
func (*Handler) HandleChallenge ¶
func (h *Handler) HandleChallenge(w http.ResponseWriter, r *http.Request)
HandleChallenge will return the value in the environ variable ACME_CHALLENGE for let's encrypt
func (*Handler) HandleInbox ¶
func (h *Handler) HandleInbox(w http.ResponseWriter, r *http.Request)
HandleInbox is the http handler for an ActivityPub user's inbox.
func (*Handler) HandleOutbox ¶
func (h *Handler) HandleOutbox(w http.ResponseWriter, r *http.Request)
func (*Handler) Register ¶
func (h *Handler) Register(w http.ResponseWriter, r *http.Request)
Register will create a user on the server
func (*Handler) SearchBooks ¶
func (h *Handler) SearchBooks(w http.ResponseWriter, r *http.Request)
SearchBooks will search the Library of Congress api for books. Currently only supports title search.
Click to show internal directories.
Click to hide internal directories.