app

package
v0.0.0-...-b865e67 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// These variables should be set during build time using -ldflags
	Version   = version.Version
	GitCommit = version.GitCommit
	BuildDate = version.BuildDate
)

Functions

func Start

func Start(getExtensionConfig GetExtensionConfig)

Types

type BootstrapConfig

type BootstrapConfig struct {
	Ctx     context.Context
	Manager manager.Manager
	Router  *mux.Router
}

type Config

type Config struct {
	Metrics struct {
		Addr     string
		CertPath string
		CertName string
		CertKey  string
	}
	Streaming struct {
		MaxBufSize     resource.QuantityValue `default:"1Mi"`
		InitialBufSize resource.QuantityValue `default:"4Ki"`
		Timeout        time.Duration          `default:"60s"`
	}
	LeaderElection     bool
	ProbeAddr          string
	SecureMetrics      bool
	EnableHTTP2        bool
	DefaultModelConfig types.NamespacedName
	HttpServerAddr     string
	WatchNamespaces    string
	A2ABaseUrl         string
	Database           struct {
		Type string
		Path string
		Url  string
	}
}

func (*Config) SetFlags

func (cfg *Config) SetFlags(commandLine *flag.FlagSet)

type CtrlManagerConfigFunc

type CtrlManagerConfigFunc func(manager.Manager) error

type ExtensionConfig

type ExtensionConfig struct {
	Authenticator    auth.AuthProvider
	Authorizer       auth.Authorizer
	AgentPlugins     []translator.TranslatorPlugin
	MCPServerPlugins []transportadapter.TranslatorPlugin
}

type GetExtensionConfig

type GetExtensionConfig func(bootstrap BootstrapConfig) (*ExtensionConfig, error)

Jump to

Keyboard shortcuts

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