Documentation ¶
Index ¶
- func HandlerDocumentRepository(repo flare.DocumentRepositorier) func(*Handler)
- func HandlerGetDocumentID(fn func(*http.Request) string) func(*Handler)
- func HandlerResourceRepository(repo flare.ResourceRepositorier) func(*Handler)
- func HandlerSubscriptionRepository(repo flare.SubscriptionRepositorier) func(*Handler)
- func HandlerSubscriptionTrigger(trigger flare.SubscriptionTrigger) func(*Handler)
- func HandlerWriter(writer *infraHTTP.Writer) func(*Handler)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerDocumentRepository ¶
func HandlerDocumentRepository(repo flare.DocumentRepositorier) func(*Handler)
HandlerDocumentRepository set the repository to access the documents.
func HandlerGetDocumentID ¶
HandlerGetDocumentID set the function to get the document id.
func HandlerResourceRepository ¶
func HandlerResourceRepository(repo flare.ResourceRepositorier) func(*Handler)
HandlerResourceRepository set the repository to access the resources.
func HandlerSubscriptionRepository ¶
func HandlerSubscriptionRepository(repo flare.SubscriptionRepositorier) func(*Handler)
HandlerSubscriptionRepository set the repository to access the subscriptions.
func HandlerSubscriptionTrigger ¶
func HandlerSubscriptionTrigger(trigger flare.SubscriptionTrigger) func(*Handler)
HandlerSubscriptionTrigger set the subscription trigger to process the document updates.
func HandlerWriter ¶
HandlerWriter set the writer to send the content to client.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the HTTP handler to manage documents.
func NewHandler ¶
NewHandler initialize the service to handle HTTP requests.
func (*Handler) Delete ¶
func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
Delete receive the request to delete a document.
Click to show internal directories.
Click to hide internal directories.