Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error construct standard response with default error response code and description after applying any given options.
Types ¶
type Std ¶
type Std struct {
ResponseCode string `json:"responseCode"`
ResponseDesc string `json:"responseDesc"`
ResponseData any `json:"responseData,omitempty"`
ResponseValidation []string `json:"responseValidation,omitempty"`
// contains filtered or unexported fields
}
Std holds standard response structure for brispot microservice.
type StdOpt ¶
type StdOpt func(std *Std)
StdOpt option signature that accept and modify Std response object.
Click to show internal directories.
Click to hide internal directories.