Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDocument ¶
func DeleteDocument(w *writer.Writer) rest.JsonHandler
DeleteDocument is a handler that deletes a document from the database.
func GetDocument ¶
func GetDocument(readerSvc *reader.Reader) rest.JsonHandler
GetDocument is a handler that gets a document from the database.
func SearchDocuments ¶
func SearchDocuments(readerSvc *reader.Reader) rest.JsonHandler
SearchDocuments is a handler that searches documents in the database.
func WriteDocument ¶
func WriteDocument(w *writer.Writer) rest.JsonHandler
WriteDocument is a handler that writes a document to the database.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
*auth.AuthService
}
func (*AuthMiddleware) IsAuthenticated ¶
func (a *AuthMiddleware) IsAuthenticated(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.