Documentation ¶
Index ¶
- type Server
- type ServerOption
- func OptionLiveHandler(handler http.Handler) ServerOption
- func OptionMetricsCollector(collector *metrics.Collector) ServerOption
- func OptionMetricsHandler(handler http.Handler) ServerOption
- func OptionOCIHandler(handler http.Handler) ServerOption
- func OptionReadyHandler(handler http.Handler) ServerOption
- func OptionUndefinedHandler(handler http.Handler) ServerOption
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 the main titan HTTP server.
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 OptionLiveHandler ¶
func OptionLiveHandler(handler http.Handler) ServerOption
OptionLiveHandler sets the http.Handler to use for the live endpoint.
func OptionMetricsCollector ¶
func OptionMetricsCollector(collector *metrics.Collector) ServerOption
OptionMetricsCollector sets the http.Handler to use for the metrics endpoint.
func OptionMetricsHandler ¶
func OptionMetricsHandler(handler http.Handler) ServerOption
OptionMetricsHandler sets the http.Handler to use for the metrics endpoint.
func OptionOCIHandler ¶
func OptionOCIHandler(handler http.Handler) ServerOption
OptionOCIHandler sets the http.Handler to use for the oci endpoint.
func OptionReadyHandler ¶
func OptionReadyHandler(handler http.Handler) ServerOption
OptionReadyHandler sets the http.Handler to use for the ready endpoint.
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.