combluotion/config/interface.go
Dan Jones 6f06adc37d ♻️ Refactor config
Make it easier to setup stores
2025-01-26 20:07:45 -06:00

17 lines
358 B
Go

package config
//go:generate mockgen -source interface.go -destination ../internal/testmocks/config/config_mock.go -package config -typed
type Config interface {
Name() string
Env() Env
BaseURL() string
StoreName() string
Store(name string) (Store, error)
}
type Store interface {
Name() string
Decode(v any) error
Map() (map[string]any, error)
}