Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressFromKey ¶
Get the address information from PublicKey
func SubnetFromKey ¶
Get the subnet information from PublicKey
Types ¶
type AutopeeringConfig ¶ added in v0.4.6
type AutopeeringConfig struct {
Enable bool `comment:"Enable autopeering"`
}
type MeshnameConfig ¶
type Module ¶
type Module interface { Init(yggcore *core.Core, yggConfig *config.NodeConfig, popuraConf *PopuraConfig, log *log.Logger, options interface{}) error Start() error Stop() error UpdateConfig(yggConf *config.NodeConfig, popuraConf *PopuraConfig) SetupAdminHandlers(a *admin.AdminSocket) IsStarted() bool }
Module is an interface that defines which functions must be supported by a given Popura module.
type PopuraConfig ¶
type PopuraConfig struct { Autopeering AutopeeringConfig `comment:"Autopeering description"` Meshname MeshnameConfig `comment:"DNS server description"` }
func GenerateConfig ¶
func GenerateConfig() *PopuraConfig
Click to show internal directories.
Click to hide internal directories.