Documentation
¶
Index ¶
- func DefaultHost() string
- type Config
- type Event
- type EventKind
- type Node
- func (n *Node) API() *webrtc.API
- func (n *Node) Advertise(capability string)
- func (n *Node) Caps() []string
- func (n *Node) Dialer() *policy.Dialer
- func (n *Node) Dropped(s *link.Stream, count int)
- func (n *Node) Handle(capability, kind string, h link.Handler)
- func (n *Node) Hello() link.Hello
- func (n *Node) Local() bool
- func (n *Node) Logf(format string, args ...any)
- func (n *Node) OnHello(f func(*link.Hello))
- func (n *Node) Options() link.Options
- func (n *Node) PeerOrigin(l *link.Link) string
- func (n *Node) Policy() *policy.Policy
- func (n *Node) Resolver() *policy.Resolver
- func (n *Node) Serve(ctx context.Context, conn signal.Conn) error
- func (n *Node) SetSSHHostKey(key string)
- func (n *Node) Subscribe(f func(Event)) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHost ¶
func DefaultHost() string
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) SetSSHHostKey ¶
Click to show internal directories.
Click to hide internal directories.