Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HealthMuxModule = fx.Module( "health", fx.Provide( fx.Annotate( func() *http.ServeMux { return http.NewServeMux() }, fx.ResultTags(`name:"admin_mux"`), ), fx.Annotate( newHealthService, fx.As(new(Service)), ), ), )
HealthMuxModule provides the health check endpoints and metrics exporter.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// Addr returns the bound listener address. It waits up to the provided
// timeout for the listener to bind; timeout <= 0 performs a non-blocking
// check. Returns an error if the address is still unavailable.
Addr(timeout time.Duration) (string, error)
}
Service exposes the tunnel client's health server functionality.
Click to show internal directories.
Click to hide internal directories.