activator

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 31

Documentation

Index

Constants

View Source
const (
	// Name is the name of the component.
	Name = "activator"
	// RevisionHeaderName is the header key for revision name.
	RevisionHeaderName = "Knative-Serving-Revision"
	// RevisionHeaderNamespace is the header key for revision's namespace.
	RevisionHeaderNamespace = "Knative-Serving-Namespace"
)

Variables

View Source
var (
	// RevisionHeaders are the headers the activator uses to identify the
	// revision. They are removed before reaching the user container.
	RevisionHeaders = []string{
		RevisionHeaderName,
		RevisionHeaderNamespace,
	}
)

Functions

func ReportStats added in v0.18.0

func ReportStats(logger *zap.SugaredLogger, sink RawSender, source <-chan []metrics.StatMessage)

ReportStats sends any messages received on the source channel to the sink. The messages are sent on a goroutine to avoid blocking, which means that messages may arrive out of order.

Types

type RawSender added in v0.18.0

type RawSender interface {
	SendRaw(msgType int, msg []byte) error
}

RawSender sends raw byte array messages with a message type (implemented by gorilla/websocket.Socket).

Directories

Path Synopsis
Package net contains the Activator components that govern Activator's request throttling, routing, and reflect the cluster network state.
Package net contains the Activator components that govern Activator's request throttling, routing, and reflect the cluster network state.

Jump to

Keyboard shortcuts

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