17 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			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)
 | |
| }
 |