dashboard

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 15 Imported by: 0

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.

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the server's listen address.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the server.

func (*Server) Start

func (s *Server) Start() error

Start starts the dashboard server.

Jump to

Keyboard shortcuts

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