mafmt

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Define IP as either ipv4 or ipv6

IPFS can run over any reliable underlying transport protocol

View Source
var QUIC = And(UDP, Base(ma.P_QUIC))

Define QUIC as 'quic' on top of udp (on top of ipv4 or ipv6)

View Source
var Reliable = Or(TCP, UTP, QUIC)

Now define a Reliable transport as either tcp or utp or quic

View Source
var TCP = And(IP, Base(ma.P_TCP))

Define TCP as 'tcp' on top of either ipv4 or ipv6

View Source
var UDP = And(IP, Base(ma.P_UDP))

Define UDP as 'udp' on top of either ipv4 or ipv6

View Source
var UTP = And(UDP, Base(ma.P_UTP))

Define UTP as 'utp' on top of udp (on top of ipv4 or ipv6)

View Source
var Unreliable = Or(UDP)

Define unreliable transport as udp

Functions

This section is empty.

Types

type Base

type Base int

func (Base) Matches

func (p Base) Matches(a ma.Multiaddr) bool

func (Base) String

func (p Base) String() string

type Pattern

type Pattern interface {
	Matches(ma.Multiaddr) bool

	String() string
	// contains filtered or unexported methods
}

func And

func And(ps ...Pattern) Pattern

func Or

func Or(ps ...Pattern) Pattern

Jump to

Keyboard shortcuts

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