Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the loop.Handler[loops.EventHTTPEndpoint] for one HTTPEndpoint name. Secret resolution can hit a remote secret store, which is why each name runs on its own lane: one slow secret store cannot stall the root loop or starve other endpoints.
func New ¶
New constructs a per-name HTTPEndpoint loop handler. The caller must invoke Run on the returned Handler's Loop().
type Options ¶
type Options struct {
Name string
CompStore *compstore.ComponentStore
Secret SecretProcessor
// Root is the parent loop. The per-name loop posts HTTPEndpointAdded
// back into it so root can update its in-flight counter.
Root loop.Interface[loops.EventRoot]
}
Options configures a per-name HTTPEndpoint loop.
type SecretProcessor ¶
type SecretProcessor interface {
ProcessResource(ctx context.Context, r meta.Resource) (bool, string)
}
SecretProcessor resolves secret references on a resource. Same shape the root and per-name MCPServer loops use; passed through so this package does not import the secret subsystem directly.
Click to show internal directories.
Click to hide internal directories.