appnet

package
v0.1.0-dev.20260308000933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package appnet 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

func (*Provider) Download

func (p *Provider) Download(url Resource) ([]byte, error)

Download fetches the content at the given URL and returns the response body.

Parameters:

  • url: network resource identifying the URL to fetch

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] is an opaque appnet: URI wrapping the normalized, transport-independent URL with targeted escaping of # and ? characters.

func (Resource) String

func (r Resource) String() string

String returns a compact JSON representation of the resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL