Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is titan's liveness endpoint.
func NewServer ¶
func NewServer(options ...ServerOption) (*Server, error)
NewServer returns a fully initialized Server.
type ServerOption ¶
type ServerOption func(*Server)
ServerOption applies a parameter to a Server.
func OptionCore ¶
func OptionCore(core Liveness) ServerOption
OptionCore sets the core to use for Liveness checks.
func OptionMetricsCollector ¶
func OptionMetricsCollector(collector *metrics.Collector) ServerOption
OptionMetricsCollector sets the http.Handler to use for the metrics endpoint.
func OptionTracer ¶
func OptionTracer(tracer opentracing.Tracer) ServerOption
OptionTracer sets the opentracing.Tracer to use for tracing.
func OptionUndefinedHandler ¶
func OptionUndefinedHandler(handler http.Handler) ServerOption
OptionUndefinedHandler sets the http.Handler to use for the unknown endpoint.
Click to show internal directories.
Click to hide internal directories.