utils

package
v0.0.0-...-7359776 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMDNS

func InitMDNS(ctx context.Context, peerhost host.Host, rendezvous string) (chan libp2ppeer.AddrInfo, error)

Initialize the MDNS service

func LoadKey

func LoadKey(keyFile string, keyReset bool) crypto.PrivKey

func SafeKeyGen

func SafeKeyGen() crypto.PrivKey

func SaveKey

func SaveKey(keyFile string, prvKey crypto.PrivKey)

Types

type Config

type Config struct {
	RendezvousString string
	ProtocolID       string
	KeyFile          string
	PeerstoreFile    string
	RenameWithPort   bool
	ListenHost       string
	ListenPort       int
	ResetKeys        bool
	RedisDb          string
	RedisDelete      bool
	RedisChannelPyGo string
	RedisChannelGoPy string
	RunTests         bool
	ShowHelp         bool
}

func ParseFlags

func ParseFlags() *Config

Jump to

Keyboard shortcuts

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