cligot

package
v1.3.106 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cligot cmd/skywire-cli/commands/got/got.go c4-vis-cli

Package cligot cmd/skywire-cli/commands/got/got_skywire.go c4-vis-cli

`got` accepts http(s) URLs natively (chunked downloads, SOCKS5 proxy support) and additionally accepts skynet://<pk>:<port>/path and dmsg://<pk>:<port>/path. The skywire schemes are routed through the local visor's RPC (SkynetHTTP / DmsgHTTP), so they require a running visor on the configured RPC address; the HTTP path runs without one. Falls back to no chunking on the skywire side — the visor RPC returns the full body in a single response, so range-based concurrency doesn't apply.

Package cligot cmd/skywire-cli/commands/got/roots_native.go

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "got",
	Short: "HTTP client with concurrent downloads (also speaks skynet:// and dmsg://)",
	Long: `HTTP client with concurrent chunked downloads (RFC 7233),
SOCKS5 proxy support, and general-purpose HTTP requests.

URL schemes:
  http://, https://         standard HTTP, with chunked range downloads
  skynet://<pk>:<port>/path routed through the local visor (SkynetHTTP RPC)
  dmsg://<pk>:<port>/path   routed through the local visor (DmsgHTTP RPC)

Subcommands:
  got dl <URL>             chunked download (HTTP); single GET (skywire)
  got req <METHOD> <URL>   general request, any method
  got head <URL>           HEAD (HTTP) / GET-headers-only (skywire)

Default (no subcommand) is download.`,
	Args: cobra.MinimumNArgs(1),
	Run: func(cmd *cobra.Command, args []string) {

		dlCmd.Run(cmd, args)
	},
}

RootCmd is the got command, defaults to download behavior.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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