Files
zeekayandHanzo Dev 1a76145191 Hanzo Marketing: lifecycle email, from one place
The web app for /v1/marketing on api.hanzo.ai (audiences, drip sequences and
their steps, enrollments, campaigns, the send calendar, promos and opt-outs)
and the small Go service beside it. Earlier history is kept privately in
hanzoai/marketing-v1.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-15 11:36:13 -07:00

22 lines
365 B
Go

package config
import "os"
// Config holds environment-based configuration for the marketing service.
type Config struct {
HTTPAddr string
}
// Load reads configuration from environment variables with sensible defaults.
func Load() Config {
c := Config{
HTTPAddr: ":8002",
}
if v := os.Getenv("MARKETING_HTTP"); v != "" {
c.HTTPAddr = v
}
return c
}