Documentation
¶
Overview ¶
Package server provides the HTTP API server (Fiber v3) and route handlers.
Index ¶
Constants ¶
const DataEventTopic = "pipeline:data_event"
Variables ¶
var LLMModules = fx.Options( fx.Invoke( llm.RegisterGemini, llm.RegisterOpenAI, llm.RegisterAnthropic, ), )
LLMModules registers all LLM provider backends via fx.
var Modules = fx.Options( flog.FxModule, metrics.Module(), modules.Modules, NotifyModules, MediaModules, LLMModules, OAuthModules, ReexecModules, fx.Provide( config.NewConfig, cache.NewCache, rdb.NewClient, cache.NewRedisStore, event.NewRouter, event.NewSubscriber, event.NewPublisher, slack.NewDriver, trace.NewTracerProvider, newController, newDatabaseAdapter, newHTTPServer, newAuditor, ), fx.Invoke( setServerCacheStore, setRouteAuditor, handleRoutes, handleEvents, initPipeline, handleModules, handlePlatform, RunServer, profiling.NewProfiler, initPageDataCleanup, ), )
var NotifyModules = fx.Options( fx.Invoke( messagepusher.Register, ntfy.Register, pushover.Register, slack.Register, initNotificationGateway, ), )
var OAuthModules = fx.Options( fx.Invoke( github.Register, slack.Register, dropbox.Register, ), )
OAuthModules registers all OAuth provider factories via fx.
ReexecModules registers all reexec handlers via fx.
Functions ¶
func NewPipelineStepCallback ¶ added in v0.92.0
func NewPipelineStepCallback(client *redis.Client) pipeline.StepCallback
NewPipelineStepCallback creates a callback backed by the Redis client. Returns nil if rdb is nil.
func RunHomelabScan ¶ added in v0.92.0
RunHomelabScan executes a full homelab scan + probe + registry update cycle. It walks the configured apps directory, discovers compose files, runs the probe engine for endpoint/auth discovery, and replaces the default registry. Exported for use by the homelab web handler to support manual rescan.
func SetCacheStore ¶ added in v0.92.0
func SetCacheStore(s *cache.RedisStore)
SetCacheStore sets the cache store for server functions.
Types ¶
type Controller ¶ added in v0.31.1
type Controller struct {
// contains filtered or unexported fields
}