server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router       chi.Router
	Config       Config
	DB           *bun.DB
	SQLDB        *sql.DB
	Tokens       *token.Tokens
	EmailService infrastructure.EmailService
}

func NewApp

func NewApp() (*App, error)

type Config

type Config struct {
	DatabaseURL  string
	SecretKey    string
	BaseURL      string
	TrustProxy   bool
	ResendAPIKey string
	MailFromAddr string
}

func (Config) SecureCookies

func (c Config) SecureCookies() bool

SecureCookies reports whether cookies should carry the Secure attribute, which is the case whenever the app is served over https.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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