Documentation
¶
Index ¶
- func MarshalAndWriteJSONResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, code int, ...) []byte
- func MethodNotAllowedHandler() http.Handler
- func NewGeneralCacheKey(req *http.Request) string
- func NewUserSpecificCacheKey(ctx context.Context, req *http.Request) (_ string, err error)
- func SetupDatadogInstrumentation(service, awsRegion, awsAccountID, stage string) *datadog.Exporter
- func StartHealthServer(port string)
- func StatusNotFoundHandler() http.Handler
- func UnmarshalRequest(body io.ReadCloser, v interface{}) error
- func WriteJSONResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, code int, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalAndWriteJSONResponse ¶
func MarshalAndWriteJSONResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, code int, v interface{}) []byte
MarshalAndWriteJSONResponse will JSON marshal the incoming data and return the serialized version
func MethodNotAllowedHandler ¶ added in v2.2.0
func NewGeneralCacheKey ¶ added in v2.2.0
func NewUserSpecificCacheKey ¶ added in v2.2.0
func StartHealthServer ¶
func StartHealthServer(port string)
func StatusNotFoundHandler ¶
func UnmarshalRequest ¶
func UnmarshalRequest(body io.ReadCloser, v interface{}) error
func WriteJSONResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.