sabisan/internal/app/types.go

37 lines
685 B
Go
Raw Normal View History

2026-05-16 23:03:50 +00:00
package app
import "archi_folio/internal/store"
const (
maxUploadBytes = 20 << 20
maxFormBytes = 24 << 20
)
type Config struct {
Addr string
DatabasePath string
SessionSecret string
AdminUsername string
AdminPassword string
UploadDir string
Version string
}
type pageData struct {
Title string
Active string
Content store.SiteContent
Projects []store.Project
Project store.Project
Image store.ProjectImage
2026-05-17 12:36:50 +00:00
Services []store.Service
FAQs []store.FAQ
2026-05-16 23:03:50 +00:00
Contacts []store.ContactRequest
Admin bool
AdminTab string
Error string
Success string
CurrentPath string
Version string
}