This repository has been archived on 2025-11-25. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
combluotion-old/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)
}