config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckAnimDuration  = 290 * time.Millisecond
	DeleteAnimDuration = 200 * time.Millisecond
	FPS                = 60
)

Variables

View Source
var (
	// Data file configuration
	DataPath    = getEnvOrDefault("DATA_PATH", getDataHomeOrDefault("data"))
	DataFile    = getEnvOrDefault("DATA_FILE", "todos.json")
	StorageType = "file" // file, s3, mongodb, postgres

	// Encryption
	EncryptionKey = "" // 64 hex chars (32 bytes)

	// S3 configuration
	S3Bucket = ""
	S3Region = "us-east-1"

	// MongoDB configuration
	MongoURI        = "mongodb://localhost:27017"
	MongoDB         = "todo"
	MongoCollection = "tasks"

	// PostgreSQL configuration
	PostgresDSN   = "postgres://user:pass@localhost/todo?sslmode=disable"
	PostgresTable = "tasks"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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