555b6d420b
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
16 lines
249 B
Go
16 lines
249 B
Go
package query
|
|
|
|
const EnvName = "QUERY_URL"
|
|
|
|
type QueryConfig struct {
|
|
QueryURL string `env:"QUERY_URL,required,notEmpty"`
|
|
}
|
|
|
|
func (c *QueryConfig) GetQueryURL() string {
|
|
return c.QueryURL
|
|
}
|
|
|
|
type ConfigProvider interface {
|
|
GetQueryURL() string
|
|
}
|