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 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
Click to show internal directories.
Click to hide internal directories.