Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitialiseDefaultResponses ¶
func InitialiseDefaultResponses()
Types ¶
type ResponseDto ¶
type ResponseDto struct { Code string // TODO: should change this to an enum in future? Description string IsError bool }
func GetDefaultErrorResponse ¶
func GetDefaultErrorResponse() ResponseDto
func GetDefaultOkResponse ¶
func GetDefaultOkResponse() ResponseDto
func SetError ¶
func SetError(errorMessage string) ResponseDto
func SetNonError ¶
func SetNonError(message string) ResponseDto
Click to show internal directories.
Click to hide internal directories.