utils

package
v0.0.0-...-c280842 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: AGPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfSha224

func CheckIfSha224(name string) bool

func GetDNSParameterAndCheckIfSha224

func GetDNSParameterAndCheckIfSha224(qName string) (string, bool)

func RemoveDuplicate

func RemoveDuplicate[T comparable](sliceList []T) []T

func ToLowerCase

func ToLowerCase(s string) string

Types

type RegisteringAddress

type RegisteringAddress struct {
	Protocol string `json:"protocol"`
	Ip       string `json:"ip"`
	Port     int    `json:"port"`
}

type RegisteringNode

type RegisteringNode struct {
	Room          string               `json:"room"`
	RoomSignature string               `json:"roomSignature"` // base64 encoded
	PublicKey     string               `json:"publicKey"`     // base64 encoded
	Addresses     []RegisteringAddress `json:"addresses"`
}

Jump to

Keyboard shortcuts

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