mirror of https://github.com/v2fly/v2ray-core.git
25 lines
660 B
Go
25 lines
660 B
Go
package dataurlfetcher
|
|
|
|
import (
|
|
"context"
|
|
"github.com/v2fly/v2ray-core/v5/app/subscription"
|
|
"github.com/v2fly/v2ray-core/v5/app/subscription/documentfetcher"
|
|
"github.com/v2fly/v2ray-core/v5/common"
|
|
)
|
|
|
|
//go:generate go run github.com/v2fly/v2ray-core/v5/common/errors/errorgen
|
|
|
|
func newDataURLFetcher() *dataURLFetcher {
|
|
return &dataURLFetcher{}
|
|
}
|
|
|
|
func init() {
|
|
common.Must(documentfetcher.RegisterFetcher("dataurl", newDataURLFetcher()))
|
|
}
|
|
|
|
type dataURLFetcher struct{}
|
|
|
|
func (d *dataURLFetcher) DownloadDocument(ctx context.Context, source *subscription.ImportSource, opts ...documentfetcher.FetcherOptions) ([]byte, error) {
|
|
panic("implement me")
|
|
}
|