Documentation ¶
Index ¶
- func Write(request *restful.Request, response *restful.Response, httpStatusCode int, ...)
- func WriteError(request *restful.Request, response *restful.Response, httpStatusCode int, ...)
- func WriteErrorWithEventID(request *restful.Request, response *restful.Response, httpStatusCode int, ...)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(request *restful.Request, response *restful.Response, httpStatusCode int, serviceType int, eventID int, message string, entity interface{})
Write sends response with specified values
Types ¶
type Error ¶
type Error struct { ErrorCode int `json:"errorCode"` ErrorMessage string `json:"errorMessage"` ErrorLogMsg string `json:"-"` }
Error is response sent when an error occurs Use event ID for error code, register your event ID at: https://docs.google.com/spreadsheets/d/1tUB0BSNLyPgeWEtnNzVQkl6Shud-_ErJja2RjIyt1B0/edit?usp=sharing
Click to show internal directories.
Click to hide internal directories.