14 lines
247 B
Go
14 lines
247 B
Go
|
|
package documentinit
|
||
|
|
|
||
|
|
type DocInitConfig struct {
|
||
|
|
DocInitURL string `env:"DOCUMENT_INIT_URL,required,notEmpty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *DocInitConfig) GetDocInitURL() string {
|
||
|
|
return c.DocInitURL
|
||
|
|
}
|
||
|
|
|
||
|
|
type ConfigProvider interface {
|
||
|
|
GetDocInitURL() string
|
||
|
|
}
|