14 lines
220 B
Go
14 lines
220 B
Go
|
|
package query
|
||
|
|
|
||
|
|
type QueryConfig struct {
|
||
|
|
QueryURL string `env:"QUERY_URL,required,notEmpty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *QueryConfig) GetQueryURL() string {
|
||
|
|
return c.QueryURL
|
||
|
|
}
|
||
|
|
|
||
|
|
type ConfigProvider interface {
|
||
|
|
GetQueryURL() string
|
||
|
|
}
|