Documentation ¶
Index ¶
- func WriteJson(w http.ResponseWriter, resp *interface{})
- func WriteJsonMessageOrError(w http.ResponseWriter, resp interface{}, error error)
- func WriteNoContentOrError(w http.ResponseWriter, error error)
- func WriteProtoArrayJsonMessageOrError[T proto.Message](w http.ResponseWriter, resps []T, error error)
- func WriteProtoJsonMessageOrError(w http.ResponseWriter, resp proto.Message, error error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJson ¶
func WriteJson(w http.ResponseWriter, resp *interface{})
func WriteJsonMessageOrError ¶
func WriteJsonMessageOrError(w http.ResponseWriter, resp interface{}, error error)
func WriteNoContentOrError ¶
func WriteNoContentOrError(w http.ResponseWriter, error error)
func WriteProtoArrayJsonMessageOrError ¶
func WriteProtoArrayJsonMessageOrError[T proto.Message](w http.ResponseWriter, resps []T, error error)
func WriteProtoJsonMessageOrError ¶
func WriteProtoJsonMessageOrError(w http.ResponseWriter, resp proto.Message, error error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.