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