controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAllSteams

func CloseAllSteams(c *gin.Context)

func Forward

func Forward(c *gin.Context)

func GetID

func GetID(c *gin.Context)

func ListListeners

func ListListeners(c *gin.Context)

func ListStreams

func ListStreams(c *gin.Context)

func Listen

func Listen(protocol string, target string)

func Ping added in v0.1.2

func Ping(c *gin.Context)

Send echo request packets to IPFS hosts.

func ShowPeers

func ShowPeers(c *gin.Context)

func StartProxy

func StartProxy()

Types

type Node

type Node struct {
	ID string
}

type P2PListener

type P2PListener struct {
	Protocol      string
	ListenAddress string
	TargetAddress string
}

type P2PListenerList

type P2PListenerList struct {
	Listeners []*P2PListener
}

type P2PStream

type P2PStream struct {
	Protocol string
	Address  string
}

type P2PStreamsList

type P2PStreamsList struct {
	Streams []*struct {
		HandlerID     string
		Protocol      string
		LocalPeer     string
		LocalAddress  string
		RemotePeer    string
		RemoteAddress string
	}
}

type Peer

type Peer struct {
	Addr string
	Peer string
}

type PeerList

type PeerList struct {
	Peers []*Peer
}

type PingResult added in v0.1.2

type PingResult struct {
	Success bool
	Text    string
	Time    int
}

type Redirection

type Redirection struct {
	Protocol string
	Target   string
}

Jump to

Keyboard shortcuts

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