framework

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cfg *Config) error

Start is a convenience wrapper that initializes and runs the app.

Types

type App added in v0.1.1

type App struct {
	Router            chi.Router
	Config            *Config
	DAO               relationdbdao.IPrimaryDao
	EntityService     services.IEntityService
	SchemaService     services.ISchemaService
	AuthService       services.IAuthService
	PageService       *services.PageService
	PermissionService *services.PermissionService
	A2UIService       *services.A2UIService
}

App represents the initialized AiGen CMS application.

func NewApp added in v0.1.1

func NewApp(cfg *Config) (*App, error)

NewApp initializes all services and the router, but does not start the server.

func (*App) Run added in v0.1.1

func (a *App) Run() error

Run starts the HTTP/HTTPS server.

type Config

type Config struct {
	AppsDir           string                     `yaml:"apps_dir" json:"apps_dir"`
	WWWRoot           string                     `yaml:"www_root" json:"www_root"`
	DatabaseType      string                     `yaml:"database_type" json:"database_type"`
	DatabaseDSN       string                     `yaml:"database_dsn" json:"database_dsn"`
	Domain            string                     `yaml:"domain" json:"domain"`
	Port              string                     `yaml:"port" json:"port"`
	AgenticConfigPath string                     `yaml:"agentic_config_path" json:"agentic_config_path"`
	Channels          descriptors.ChannelsConfig `yaml:"channels" json:"channels"`
	MCP               descriptors.MCPConfig      `yaml:"mcp" json:"mcp"`
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfig

func LoadConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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