handlers

package
v0.0.0-...-65ae5a0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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