Documentation
¶
Overview ¶
Package AIGatewayController provides AIGatewayController to manage certificates automatically.
Index ¶
- Constants
- func HandlerResults() []string
- type AIGatewayController
- func (agc *AIGatewayController) Category() supervisor.ObjectCategory
- func (agc *AIGatewayController) Close()
- func (agc *AIGatewayController) DefaultSpec() interface{}
- func (agc *AIGatewayController) Handle(ctx *context.Context, providerName string, middlewares []string) string
- func (agc *AIGatewayController) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
- func (agc *AIGatewayController) InheritClose()
- func (agc *AIGatewayController) Init(superSpec *supervisor.Spec)
- func (agc *AIGatewayController) Kind() string
- func (agc *AIGatewayController) Status() *supervisor.Status
- type AIGatewayHandler
- type HealthCheckResponse
- type HealthCheckResult
- type Spec
- type StatsResponse
- type Status
Constants ¶
View Source
const ( // Category is the category of AIGatewayController. Category = supervisor.CategoryBusinessController // Kind is the kind of AIGatewayController. Kind = "AIGatewayController" )
View Source
const ( APIGroupName = "ai_gateway" APIPrefix = "/ai-gateway" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AIGatewayController ¶
type AIGatewayController struct {
// contains filtered or unexported fields
}
AIGatewayController is the controller for AI Gateway.
func (*AIGatewayController) Category ¶
func (agc *AIGatewayController) Category() supervisor.ObjectCategory
Category returns the category of AIGatewayController.
func (*AIGatewayController) Close ¶
func (agc *AIGatewayController) Close()
Close closes AIGatewayController.
func (*AIGatewayController) DefaultSpec ¶
func (agc *AIGatewayController) DefaultSpec() interface{}
DefaultSpec returns the default spec of AIGatewayController.
func (*AIGatewayController) Inherit ¶
func (agc *AIGatewayController) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
Inherit inherits previous generation of AIGatewayController.
func (*AIGatewayController) InheritClose ¶
func (agc *AIGatewayController) InheritClose()
func (*AIGatewayController) Init ¶
func (agc *AIGatewayController) Init(superSpec *supervisor.Spec)
Init initializes AIGatewayController.
func (*AIGatewayController) Kind ¶
func (agc *AIGatewayController) Kind() string
Kind return the kind of AIGatewayController.
func (*AIGatewayController) Status ¶
func (agc *AIGatewayController) Status() *supervisor.Status
Status returns the status of AIGatewayController.
type AIGatewayHandler ¶
type AIGatewayHandler interface {
Handle(ctx *context.Context, providerName string, middlewares []string) string
}
AIGatewayHandler is used to handle AI traffic.
func GetGlobalAIGatewayHandler ¶
func GetGlobalAIGatewayHandler() (AIGatewayHandler, error)
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Results []HealthCheckResult `json:"results"`
}
type HealthCheckResult ¶
type Spec ¶
type Spec struct {
Providers []*aicontext.ProviderSpec `json:"providers,omitempty"`
Middlewares []*middlewares.MiddlewareSpec `json:"middlewares,omitempty"`
}
Spec describes AIGatewayController.
type StatsResponse ¶
type StatsResponse struct {
Stats []*metricshub.MetricStats `json:"stats"`
}
Click to show internal directories.
Click to hide internal directories.