app

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAppSettingsUnset      = errors.New("somehow we got here with settings unset - contact the developer")
	ErrAppAlreadyInitialised = errors.New("app was already initialised")
)

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) E

func (a *App) E() *echo.Echo

E returns app's *echo.Echo instance.

func (*App) Init

func (a *App) Init(s *settings.Settings, logger *slogging.Slogger, dbclient *ent.Client) error

Init allows setting App's important fields - once.

func (*App) Logger

func (a *App) Logger() *slogging.Slogger

Logger returns app's pointer to the global logger instance.

func (*App) PrintConfiguration

func (a *App) PrintConfiguration()

PrintConfiguration outputs relevant settings of the application to console.

func (*App) SetEmbeds

func (a *App) SetEmbeds(templates, assets embed.FS)

SetEmbeds saves the embedded files to application state.

func (*App) SetServerSettings

func (a *App) SetServerSettings()

SetServerSettings sets up the main Echo instance and panics on err.

func (*App) SetSettings

func (a *App) SetSettings(s *settings.Settings)

func (*App) SetupRoutes

func (a *App) SetupRoutes() error

type Embeds

type Embeds struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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