Documentation
¶
Overview ¶
Package net provides network actions for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
}
Provider provides network actions.
+devlore:access=both
type Resource ¶
type Resource struct {
op.ResourceBase
SourceURL *url.URL
}
Resource represents a network resource identified by a URL.
The SourceURL holds the original URL as provided (with transport scheme, original casing, etc.). The canonical URI produced by [URI] strips the transport scheme and normalizes the authority and path components for catalog deduplication.
func (*Resource) URI ¶
URI returns the canonical net:// URI for catalog lookups.
The URI is transport-independent: http://example.com/f and https://example.com/f produce the same URI. The original transport scheme is available via SourceURL.Scheme.