Documentation ¶
Index ¶
- Constants
- Variables
- func Dbg(ctx context.Context, v string)
- func GetContext(r *http.Request) context.Context
- func RequestIDSetter(next http.Handler) http.Handler
- func SendError(ctx context.Context, w http.ResponseWriter, err error, code string)
- func SendError_ws(ctx context.Context, c *websocket.Conn, err error, code string)
- func SendSuccess(ctx context.Context, w http.ResponseWriter, data interface{}, eof bool)
- func TimeTrack(ctx context.Context, start time.Time)
- func TimeTrackTest(start time.Time)
- type Response
Constants ¶
View Source
const ERR_UNRECOVERABLE = "unrecoverable-error"
Variables ¶
Functions ¶
func RequestIDSetter ¶
func SendError_ws ¶
func SendSuccess ¶
func SendSuccess(ctx context.Context, w http.ResponseWriter, data interface{}, eof bool)
func TimeTrackTest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.