Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) Init ¶
func (d *DB) Init( appVersion string, serverTLSCert, serverTLSKey []byte, serverTLSSAN string, logger *slog.Logger, ) (localUser *models.User, err error)
Init creates the database schema and initial records.
func (*DB) NewContext ¶
NewContext returns a new child context of the main database context.
Click to show internal directories.
Click to hide internal directories.