ident

package
v0.1.106 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version ...
	Version = "v0.0.1"
)

Functions

func DefaultPeerID

func DefaultPeerID() string

DefaultPeerID return default PeerID

func DefaultUserAgent

func DefaultUserAgent() string

DefaultUserAgent ...

func GetCleanVersion

func GetCleanVersion() string

GetCleanVersion returns version, provided to compiler, but without possible commit information

func GetTorrentVersion

func GetTorrentVersion() string

GetTorrentVersion returns version of GoTorrent, provided to compiler

func GetUserAndPeer

func GetUserAndPeer() (peerID, userAgent string)

GetUserAndPeer returns PeerID and UserAgent, according to Config settings. If not set - returns default values

func GetVersion

func GetVersion() string

GetVersion returns version, provided to compiler

func PeerIDRandom

func PeerIDRandom(peer string) string

PeerIDRandom generates random peer id

Types

This section is empty.

Jump to

Keyboard shortcuts

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