2021-09-13 11:30:14 -04:00
|
|
|
package custom
|
|
|
|
|
|
|
|
|
|
import (
|
2022-04-16 19:30:26 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/constants/providers"
|
2022-06-09 23:47:12 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/provider/common"
|
2021-09-13 11:30:14 -04:00
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Provider struct {
|
2022-06-12 00:57:37 +00:00
|
|
|
extractor Extractor
|
2022-06-09 23:47:12 +00:00
|
|
|
common.Fetcher
|
2021-09-13 11:30:14 -04:00
|
|
|
}
|
|
|
|
|
|
2022-06-12 00:57:37 +00:00
|
|
|
func New(extractor Extractor) *Provider {
|
2021-09-13 11:30:14 -04:00
|
|
|
return &Provider{
|
2023-09-23 13:02:09 +00:00
|
|
|
extractor: extractor,
|
|
|
|
|
Fetcher: utils.NewNoFetcher(providers.Custom),
|
2021-09-13 11:30:14 -04:00
|
|
|
}
|
|
|
|
|
}
|
2022-06-07 16:58:08 +00:00
|
|
|
|
|
|
|
|
func (p *Provider) Name() string {
|
|
|
|
|
return providers.Custom
|
|
|
|
|
}
|