app

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 94 Imported by: 0

Documentation

Overview

Package app - the engine's program: the server and its commands (install, migrate, theme…), run by Main.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main runs the engine: "app <command> …" runs a command and exits; without one it serves the site. The engine's binary (cmd/app) calls it, and so does a site's own main package that imports modules from outside the engine (kosatka.Main).

func NewEntConn

func NewEntConn(cfg *config.DBConfig) (*coreSQL.DB, *sql.Driver, error)

NewEntConn opens the site database (MySQL or PostgreSQL, cfg.Driver); the repositories built from its *sql.DB speak its dialect.

Types

This section is empty.

Directories

Path Synopsis
Package demoset - the demo sets of "app install -demo-set <name>": a whole demo site as data, sets/<name>/<lang>.yaml - its theme, users, vocabularies, fields, content types, Views, blocks, menus and content (nodes with their field values, comments, view counts), in one language.
Package demoset - the demo sets of "app install -demo-set <name>": a whole demo site as data, sets/<name>/<lang>.yaml - its theme, users, vocabularies, fields, content types, Views, blocks, menus and content (nodes with their field values, comments, view counts), in one language.
Package starter - what a new site starts with (app install), as data: starter.yaml describes the site's look, image styles, fields, content types, Views and menus; Apply creates them.
Package starter - what a new site starts with (app install), as data: starter.yaml describes the site's look, image styles, fields, content types, Views and menus; Apply creates them.

Jump to

Keyboard shortcuts

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