Documentation ¶
Index ¶
- type Logger
- type MetricsOptions
- type Options
- type Statsd
- type System
- func (s *System) Addr() string
- func (s *System) Log(keyvals ...interface{}) error
- func (s *System) RegisterChecker(component string, checker healthz.HealthChecker) error
- func (s *System) RegisterHandler(pattern string, handler http.Handler)
- func (s *System) Run(signals <-chan os.Signal, ready chan<- struct{}) error
- func (s *System) Start() error
- func (s *System) Stop() error
- type TLS
- type VersionInfoHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Warn(args ...interface{}) Warnf(template string, args ...interface{}) }
type MetricsOptions ¶
type Options ¶
type Options struct { Logger Logger ListenAddress string Metrics MetricsOptions TLS TLS Version string }
type System ¶
func (*System) RegisterChecker ¶
func (s *System) RegisterChecker(component string, checker healthz.HealthChecker) error
func (*System) RegisterHandler ¶
RegisterHandler registers into the ServeMux a handler chain that borrows its security properties from the operations.System. This method is thread safe because ServeMux.Handle() is thread safe, and options are immutable. This method can be called either before or after System.Start(). If the pattern exists the method panics.
type TLS ¶
type VersionInfoHandler ¶
type VersionInfoHandler struct { CommitSHA string `json:"CommitSHA,omitempty"` Version string `json:"Version,omitempty"` }
func (*VersionInfoHandler) ServeHTTP ¶
func (m *VersionInfoHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.