Documentation ¶
Index ¶
- type GetMulticastInterfacesRequest
- type GetMulticastInterfacesResponse
- type Multicast
- func (m *Multicast) Init(core *core.Core, nc *config.NodeConfig, log *log.Logger, options interface{}) error
- func (m *Multicast) Interfaces() map[string]net.Interface
- func (m *Multicast) IsStarted() bool
- func (m *Multicast) SetupAdminHandlers(a *admin.AdminSocket)
- func (m *Multicast) Start() error
- func (m *Multicast) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetMulticastInterfacesRequest ¶
type GetMulticastInterfacesRequest struct{}
type GetMulticastInterfacesResponse ¶
type GetMulticastInterfacesResponse struct {
Interfaces []string `json:"multicast_interfaces"`
}
type Multicast ¶
Multicast represents the multicast advertisement and discovery mechanism used by Yggdrasil to find peers on the same subnet. When a beacon is received on a configured multicast interface, Yggdrasil will attempt to peer with that node automatically.
func (*Multicast) Init ¶
func (m *Multicast) Init(core *core.Core, nc *config.NodeConfig, log *log.Logger, options interface{}) error
Init prepares the multicast interface for use.
func (*Multicast) SetupAdminHandlers ¶
func (m *Multicast) SetupAdminHandlers(a *admin.AdminSocket)
Click to show internal directories.
Click to hide internal directories.