apiconn

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Package apiconn parses Lotus-compatible FULLNODE_API_INFO strings without importing github.com/filecoin-project/lotus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Addr  string
	Token []byte
}

Info holds a parsed FULLNODE_API_INFO entry.

func Parse

func Parse(s string) Info

Parse splits "TOKEN:multiaddr" or bare multiaddr/URL forms.

func (Info) AuthHeader

func (a Info) AuthHeader() http.Header

AuthHeader returns the Authorization header for the token, if any.

func (Info) DialArgs

func (a Info) DialArgs(version string) (string, error)

DialArgs returns the HTTP JSON-RPC URL for API version v1.

Jump to

Keyboard shortcuts

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