Documentation ¶
Overview ¶
Package resource provides utils for handling resource calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendJSON ¶
func SendJSON(sender backend.CallResourceResponseSender, obj interface{}) error
SendJSON sends a JSON response.
func SendPlainText ¶
func SendPlainText(sender backend.CallResourceResponseSender, text string) error
SendPlainText sends a plain text response.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package httpadapter provides support for handling resource calls using an http.Handler.
|
Package httpadapter provides support for handling resource calls using an http.Handler. |
Click to show internal directories.
Click to hide internal directories.