activator

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const APINameCtxKey ctxValue = "apiName"

Variables

This section is empty.

Functions

This section is empty.

Types

type Activator

type Activator interface {
	Try(ctx context.Context, fn func() error) error
}

func New

func New(
	istioClient istionetworkingclient.VirtualServiceInterface,
	deploymentInformer cache.SharedIndexInformer,
	virtualServiceInformer cache.SharedIndexInformer,
	autoscalerClient autoscaler.Client,
	logger *zap.SugaredLogger,
) Activator

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(act Activator, logger *zap.SugaredLogger) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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