Documentation
¶
Index ¶
- type Metadata
- type MetadataExtractor
- func (me *MetadataExtractor) Do(request *http.Request) (*http.Response, error)
- func (me *MetadataExtractor) ExtractFromFile(productPath string) (*Metadata, error)
- func (me *MetadataExtractor) ExtractFromURL(productURL string) (*Metadata, error)
- func (me *MetadataExtractor) Get(url string) (*http.Response, error)
- func (me *MetadataExtractor) Head(url string) (*http.Response, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataExtractor ¶
type MetadataExtractor struct {
// contains filtered or unexported fields
}
func NewMetadataExtractor ¶
func NewMetadataExtractor(options ...Option) *MetadataExtractor
func (*MetadataExtractor) ExtractFromFile ¶
func (me *MetadataExtractor) ExtractFromFile(productPath string) (*Metadata, error)
func (*MetadataExtractor) ExtractFromURL ¶
func (me *MetadataExtractor) ExtractFromURL(productURL string) (*Metadata, error)
type Option ¶
type Option func(*MetadataExtractor)
func WithHTTPClient ¶
func WithHTTPClient(client httpClient) Option
Click to show internal directories.
Click to hide internal directories.