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