Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseTimeInterceptor ¶
func ResponseTimeInterceptor(m map[string]ResponseTimeState) health.Interceptor
Types ¶
type JSONResultWriter ¶
type JSONResultWriter struct {
// contains filtered or unexported fields
}
func NewJSONResultWriter ¶
func NewJSONResultWriter(m map[string]ResponseTimeState) *JSONResultWriter
func (*JSONResultWriter) Write ¶
func (rw *JSONResultWriter) Write(result *health.CheckerResult, status int, w http.ResponseWriter, _ *http.Request) error
Click to show internal directories.
Click to hide internal directories.