config

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName string `mapstructure:"SERVICE_NAME"`
	Env         string `mapstructure:"ENV"`
	DSN         string `mapstructure:"DSN"`
	PORT        string `mapstructure:"PORT"`
	GCPProject  string `mapstructure:"GCP_PROJECT"`
	GCPRegion   string `mapstructure:"GCP_REGION"`

	ClerkAPIKey string `mapstructure:"CLERK_API_KEY"`
	ConsulHost  string `mapstructure:"CONSUL_HOST"`
	ConsulPort  string `mapstructure:"CONSUL_PORT"`

	HouseholdHost string `mapstructure:"HOUSEHOLD_SERVICE_HOST"`
	MemberHost    string `mapstructure:"MEMBER_SERVICE_HOST"`
	MealHost      string `mapstructure:"MEAL_SERVICE_HOST"`
	EventHost     string `mapstructure:"EVENT_SERVICE_HOST"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

Jump to

Keyboard shortcuts

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