dns

package
v1.2.34 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nip05Regex = regexp.MustCompile(`^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$`)

Functions

func IsValidIdentifier

func IsValidIdentifier(input st) bo

func NormalizeIdentifier

func NormalizeIdentifier(account st) st

func ParseIdentifier

func ParseIdentifier(account st) (name, domain st, err er)

func QueryIdentifier

func QueryIdentifier(c cx, account st) (prf *pointers.Profile, err er)

func StringSliceToByteSlice

func StringSliceToByteSlice(ss []st) (bs []by)

Types

type WellKnownResponse

type WellKnownResponse struct {
	Names  map[st]st   `json:"names"`
	Relays map[st][]st `json:"relays,omitempty"`
	NIP46  map[st][]st `json:"nip46,omitempty"`
}

func Fetch

func Fetch(c cx, account st) (resp *WellKnownResponse, name st, err er)

func NewWellKnownResponse

func NewWellKnownResponse() *WellKnownResponse

Jump to

Keyboard shortcuts

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