Documentation ¶
Index ¶
- Constants
- func ErrorResponse(s quark.Service, w http.ResponseWriter, r *http.Request, e *errors.Error, ...)
- func GetContextWithSpan(s quark.Service, r *http.Request) context.Context
- func GetRequestID(r *http.Request) string
- func GetUserID(r *http.Request) string
- func ParseRequestData(r *http.Request, in interface{}) ([]byte, error)
- func Response(s quark.Service, w http.ResponseWriter, r *http.Request, in interface{}, ...)
Constants ¶
View Source
const ( CategoriesPageSize = 50 ExpensesPageSize = 50 UserClaimsKey = "USER_KEY" UserIDKey = "UserID" RequestIDKey = "Request-ID" ErrorKey = "Error" ErrorMetricName = "errors" )
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func GetRequestID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.