Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAdminServer ¶
func DefaultAdminServer(kubernetesClient internal.ControlPlaneClient) *http.Server
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(options ...ServerOption) *Server
func (*Server) RegisterRoutes ¶
func (s *Server) RegisterRoutes(r *chi.Mux)
type ServerOption ¶
type ServerOption func(s *Server)
ServerOption lets you functionally control construction of the web server
func WithAdminServer ¶
func WithAdminServer(adminServer *http.Server) ServerOption
func WithKubernetesClient ¶
func WithKubernetesClient(clientset internal.ControlPlaneClient) ServerOption
func WithLogger ¶
func WithLogger(log zerolog.Logger) ServerOption
func WithMetrics ¶
func WithMetrics(metrics internal.MetricsClient) ServerOption
Click to show internal directories.
Click to hide internal directories.