popura

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressFromKey

func AddressFromKey(inputString string) *net.IP

Get the address information from PublicKey

func SubnetFromKey

func SubnetFromKey(inputString string) *net.IPNet

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 MeshnameConfig struct {
	Enable bool   `comment:"Enable or disable the DNS server"`
	Listen string `comment:"Listen address for the DNS server"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL