Documentation
¶
Overview ¶
Package operations provides bounded admission, request deadlines, health, and SLO snapshots for the Runtime's public execution paths.
Index ¶
- Variables
- type Config
- type Gate
- func (g *Gate) Acquire(ctx context.Context) (context.Context, func(bool), error)
- func (g *Gate) Drain()
- func (g *Gate) Health(version string) operationsv1.HealthSnapshot
- func (g *Gate) RecordDroppedEvents(count int64)
- func (g *Gate) SLO() operationsv1.SLOSnapshot
- func (g *Gate) StreamInterceptor() grpc.StreamServerInterceptor
- func (g *Gate) UnaryInterceptor() grpc.UnaryServerInterceptor
- func (g *Gate) WrapHTTP(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOverloaded = errors.New("runtime admission queue is full") ErrDraining = errors.New("runtime is draining") )
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
func (*Gate) Health ¶
func (g *Gate) Health(version string) operationsv1.HealthSnapshot
func (*Gate) RecordDroppedEvents ¶
RecordDroppedEvents records actual event delivery loss. Admission rejection is tracked independently and must never be reported as an event loss.
func (*Gate) SLO ¶
func (g *Gate) SLO() operationsv1.SLOSnapshot
func (*Gate) StreamInterceptor ¶
func (g *Gate) StreamInterceptor() grpc.StreamServerInterceptor
func (*Gate) UnaryInterceptor ¶
func (g *Gate) UnaryInterceptor() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.