utils

package
v0.0.0-...-729a1dc Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIPAddressType

func CheckIPAddressType(ip string) (bittorrent.AddressFamily, error)

func Compact4

func Compact4(peer bittorrent.Peer) (buf []byte)

Compact IPv4 peer for resp

func Compact6

func Compact6(peer bittorrent.Peer) (buf []byte)

Compact IPv6 peer for resp

func Dict

func Dict(peer bittorrent.Peer) interface{}

func ReturnError

func ReturnError(code int, c *fiber.Ctx, reason string, err2 error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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