Documentation ¶
Index ¶
- Variables
- func New(m map[string]DynSwarm) p2p.Swarm[Addr]
- func NewSecure[Pub any](m map[string]DynSecureSwarm[Pub]) p2p.SecureSwarm[Addr, Pub]
- func NewSecureAsk[Pub any](m map[string]DynSecureAskSwarm[Pub]) p2p.SecureAskSwarm[Addr, Pub]
- type Addr
- type AddrSchema
- type DynSecureAskSwarm
- type DynSecureSwarm
- type DynSwarm
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTransportNotExist = errors.New("transport does not exist for scheme")
)
Functions ¶
func NewSecure ¶
func NewSecure[Pub any](m map[string]DynSecureSwarm[Pub]) p2p.SecureSwarm[Addr, Pub]
func NewSecureAsk ¶
Types ¶
type AddrSchema ¶
type AddrSchema struct {
// contains filtered or unexported fields
}
AddrSchema is an address scheme for parsing addresses from multiple swarms
func NewSchemaFromSecureSwarms ¶
func NewSchemaFromSecureSwarms[Pub any](sws map[string]DynSecureSwarm[Pub]) AddrSchema
func NewSchemaFromSwarms ¶
func NewSchemaFromSwarms(sws map[string]DynSwarm) AddrSchema
type DynSecureAskSwarm ¶
type DynSecureAskSwarm[Pub any] p2p.SecureAskSwarm[p2p.Addr, Pub]
func WrapSecureAskSwarm ¶
func WrapSecureAskSwarm[T p2p.Addr, Pub any](x p2p.SecureAskSwarm[T, Pub]) DynSecureAskSwarm[Pub]
type DynSecureSwarm ¶
type DynSecureSwarm[Pub any] p2p.SecureSwarm[p2p.Addr, Pub]
func WrapSecureSwarm ¶
func WrapSecureSwarm[T p2p.Addr, Pub any](x p2p.SecureSwarm[T, Pub]) DynSecureSwarm[Pub]
Click to show internal directories.
Click to hide internal directories.