Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
Types ¶
type Caveman ¶
Caveman defines a Caveman apppplication It embeds the App methods (providing all kinds of low-level access) But here are some higher-level methods given for convenience. Also, the user can give a custom settings struct to run the app with, that optionally can be saved as the most recent settings into the DB.
func New ¶
func New() *Caveman
Creates a new Caveman instance with either the - latest settings from the DB - or the default settings if no settings are found.
func NewWithSettings ¶
NewWithSettings creates a new Caveman instance with the provided config.
Note that the application will not be initialized/bootstrapped yet, aka. DB connections, migrations, app settings, etc. will not be accessible. Everything will be initialized when [Start()] is executed. If you want to initialize the application before calling [Start()], then you'll have to manually call [Bootstrap()].
Directories ¶
Path | Synopsis |
---|---|
Package migratecmd adds a new "migrate" command support to a PocketBase instance.
|
Package migratecmd adds a new "migrate" command support to a PocketBase instance. |
Package ui handles the caveman Admin frontend embedding.
|
Package ui handles the caveman Admin frontend embedding. |
tools
|
|
templates
Package template is a thin wrapper around the standard html/template and text/template packages that implements a convenient registry to load and cache templates on the fly concurrently.
|
Package template is a thin wrapper around the standard html/template and text/template packages that implements a convenient registry to load and cache templates on the fly concurrently. |
types
Package types implements some commonly used db serializable types like datetime, json, etc.
|
Package types implements some commonly used db serializable types like datetime, json, etc. |