adele

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

README

Adele Logo

Meet Adele

Adele is a powerful web application framework written in Go. Our framework provides a jumping-off-point for creating a web application without having to write wiring code. Once installed, you can focus on creating your application.

Batteries Included

Adele ships with common web development features consumed by most modern web applications. You can get started building your application immediately and avoid many of the well-know development pitfalls.

License

Copyright 2025 Cidekar, LLC. All rights reserved.

Apache License 2.0

Documentation

Index

Constants

View Source
const Version = "v1.0.4"

Variables

View Source
var Helpers = &helpers.Helpers{}

Create a global helper instance for the package— provides access to all helper methods in sub-packages.

Functions

This section is empty.

Types

type Adele

type Adele struct {
	AppName string

	Cache      cache.Cache
	DB         *database.Database
	Debug      bool
	FileSystem map[string]interface{}
	Helpers    *helpers.Helpers
	JetViews   *jet.Set
	Log        *logrus.Logger
	Mail       mailer.Mail

	MaintenanceMode  bool
	Provider         *provider.Provider
	Render           *render.Render
	Routes           *mux.Mux
	RootPath         string
	RPCListener      *net.Listener
	Scheduler        *cron.Cron
	Session          *scs.SessionManager
	Version          string
	ViewsTemplateDir string
	// contains filtered or unexported fields
}

func (*Adele) BoootstrapMailer

func (a *Adele) BoootstrapMailer() mailer.Mail

Configure the mailer for the application by initializing mailer struct. The mailer values are populated by the environemnt variables parsed from the .env file at the root of the application.

func (*Adele) BoostrapFilesystem

func (a *Adele) BoostrapFilesystem()

Initializes the file system auto-configuration method for the framework by detecting and initializes available file storage systems based on environment variables during application startup.

func (*Adele) BootstrapCache

func (a *Adele) BootstrapCache(rootPath string) error

Cache initialization method that automatically detects and configures the appropriate caching system during application startup based on environment variables.

func (*Adele) BootstrapDatabase

func (a *Adele) BootstrapDatabase()

Initializes and sets up a database connection for the application—establishes a database connection during application startup and stores it in the Adele struct.

func (*Adele) BootstrapHelpers

func (a *Adele) BootstrapHelpers() *helpers.Helpers

Creates and returns a helper utilities object for the Adele framework— a collection of utility functions that can be used throughout the application.

func (*Adele) BootstrapJetEngine

func (a *Adele) BootstrapJetEngine() *jet.Set

Setup This code is setting up the Jet template engine for your Adele framework with different configurations based on whether the application is in debug/development mode or production mode—enables features that help during development but would hurt performance in production (like not caching templates and reloading them on every request).

func (*Adele) BootstrapMiddleware

func (a *Adele) BootstrapMiddleware()

Configure the middleware for the application by initializing a middleware struct, populating its values using the application configuration.

func (*Adele) BootstrapMux

func (a *Adele) BootstrapMux(rootPath string) (http.Handler, error)

Setup up and configures an HTTP router using the adele mux package. This function returns an http.Handler which represents a chain of middleware and eventually, the handlers for specific routes.

func (*Adele) BootstrapRender

func (a *Adele) BootstrapRender() *render.Render

Setup and configuring a render engine- initializes a rendering system that handles template rendering for web responses (HTML pages, emails, etc.). The render system handles Rendering HTML templates for web pages, passing session data to templates, and, managing template inheritance and layouts.

func (*Adele) BootstrapScheduler

func (a *Adele) BootstrapScheduler()

Initializes a cron job scheduler for the Adele framework. Sets up task scheduling capabilities during application startup for framework-wide access.

func (*Adele) BootstrapSessionManager

func (a *Adele) BootstrapSessionManager() (*scs.SessionManager, error)

Configure and create the session manager by initializing a session struct, populating its cookie fields by retrieving values from environment variables.

func (*Adele) CreateDirectories

func (a *Adele) CreateDirectories(rootPath string, directories []string) error

Create all nonexistent parent directories

func (*Adele) CreateEnvironmentFile

func (a *Adele) CreateEnvironmentFile(rootPath string) error

Ensure that a environment file at a specific path exists, creating it if it's missing, and returning any errors that may arise.

func (*Adele) New

func (a *Adele) New(rootPath string) error

Create a new instance of the Adele type using a pointer to Adele with the root path of the application as a argument. The new-up is called by project adele's consuming package to bootstrap the framework.

Directories

Path Synopsis
cli
adele command
migrations
Package migrations provides database migration utilities built on top of golang-migrate.
Package migrations provides database migration utilities built on top of golang-migrate.

Jump to

Keyboard shortcuts

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