mirror of
https://github.com/hanzoai/marketing.git
synced 2026-10-17 11:18:15 +00:00
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]>
22 lines
365 B
Go
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
|
|
}
|