net

package
v0.1.0-dev.20260223223859 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package net provides network actions for the operation graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *op.ActionRegistry)

Register registers all net actions with the given registry.

Types

type Download

type Download struct{ Impl *Provider }

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

func (*Download) Do

func (o *Download) Do(ctx *op.Context, slots map[string]any) (op.Result, op.UndoState, error)

func (*Download) Name

func (o *Download) Name() string

type Provider

type Provider struct{}

Provider provides network actions.

func (*Provider) Download

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

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

Parameters:

  • url: HTTP(S) URL to fetch

+devlore:access=planned

Jump to

Keyboard shortcuts

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