httpsvc

package
v1.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package httpsvc provides a HTTP/1.x Service which is compatible with the manager.Runnable API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Addr string
	Port int

	// TLS parameters
	CABundle string
	Cert     string
	Key      string

	logrus.FieldLogger
	http.ServeMux
}

Service is a HTTP/1.x endpoint which is compatible with the manager.Runnable API.

func (*Service) NeedLeaderElection added in v1.20.0

func (svc *Service) NeedLeaderElection() bool

func (*Service) Start

func (svc *Service) Start(ctx context.Context) (err error)

Implements controller-runtime Runnable interface. When context is done, http server will shutdown.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL