Documentation
¶
Index ¶
Constants ¶
View Source
const ( Forbidden = "Forbidden" )
Variables ¶
This section is empty.
Functions ¶
func OrgIDFromContext ¶ added in v1.0.0
OrgIDFromContext extracts the organization ID from the context. Falls back to the default organization ID if not present.
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, body any, errorBody any, code int)
WriteJSONResponse is a version-independent response writer. For 2xx status codes, body is encoded as the response. For non-2xx, errorBody is encoded instead. Responses with no body (204, 304, 1xx) only write the status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.