Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WakatimeRelayMiddleware ¶
type WakatimeRelayMiddleware struct {
// contains filtered or unexported fields
}
WakatimeRelayMiddleware is a middleware to conditionally relay heartbeats to Wakatime (and other compatible services)
func NewWakatimeRelayMiddleware ¶
func NewWakatimeRelayMiddleware() *WakatimeRelayMiddleware
func (*WakatimeRelayMiddleware) Handler ¶
func (m *WakatimeRelayMiddleware) Handler(h http.Handler) http.Handler
func (*WakatimeRelayMiddleware) ServeHTTP ¶
func (m *WakatimeRelayMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.