Documentation ¶
Index ¶
- Constants
- func NewSignerFromSigner(x crypto.Signer) (ssh.Signer, error)
- type Addr
- type Conn
- type Option
- type PrivateKey
- type PublicKey
- type Swarm
- func (s *Swarm) Ask(ctx context.Context, resp []byte, dst Addr, data p2p.IOVec) (int, error)
- func (s *Swarm) Close() error
- func (s *Swarm) LocalAddrs() []Addr
- func (s *Swarm) LookupPublicKey(ctx context.Context, x Addr) (PublicKey, error)
- func (s *Swarm) MTU() int
- func (s *Swarm) ParseAddr(data []byte) (Addr, error)
- func (s *Swarm) PublicKey() PublicKey
- func (s *Swarm) Receive(ctx context.Context, th func(p2p.Message[Addr])) error
- func (s *Swarm) ServeAsk(ctx context.Context, fn func(context.Context, []byte, p2p.Message[Addr]) int) error
- func (s *Swarm) Tell(ctx context.Context, dst Addr, data p2p.IOVec) error
Constants ¶
View Source
const MTU = 1 << 17
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addr ¶
func (Addr) MarshalText ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type PrivateKey ¶
Click to show internal directories.
Click to hide internal directories.