14 lines
267 B
Go
14 lines
267 B
Go
|
|
package documentsync
|
||
|
|
|
||
|
|
type DocSyncConfig struct {
|
||
|
|
DocumentSyncURL string `env:"DOCUMENT_SYNC_URL,required,notEmpty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *DocSyncConfig) GetDocumentSyncURL() string {
|
||
|
|
return c.DocumentSyncURL
|
||
|
|
}
|
||
|
|
|
||
|
|
type ConfigProvider interface {
|
||
|
|
GetDocumentSyncURL() string
|
||
|
|
}
|