Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string // Listen address (default: ":8080")
Namespace string // Default namespace to display
}
Config holds dashboard server configuration.
type PageData ¶
type PageData struct {
Title string
ActivePage string
Namespace string
Content any
Error string
IsHTMX bool
}
PageData holds common data for all pages.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves the Cortex web dashboard.
func New ¶
func New( store storage.Backend, know *knowledge.Engine, conv *conversation.Engine, ctx *ctxengine.Engine, ent *entity.Engine, cfg *Config, ) (*Server, error)
New creates a new dashboard server.
Click to show internal directories.
Click to hide internal directories.