Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // tun TUNName string MTU int LocalAddr netip.Prefix EnableBroadcast bool // libp2p PrivateKey *PrivateKey PeerID string Bootstraps []string PeersRouteTable map[string]netip.Prefix Relays []string EnableAutoRelay bool EnableMDNS bool // log LogConfigs []mlog.CoreConfig // contains filtered or unexported fields }
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func NewPrivateKey ¶
func NewPrivateKey() (*PrivateKey, error)
func (*PrivateKey) MarshalText ¶
func (p *PrivateKey) MarshalText() ([]byte, error)
func (*PrivateKey) UnmarshalText ¶
func (p *PrivateKey) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.