handles

package
v0.0.0-...-c10ddb5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Overview

Deprecated: use github.com/bluesky-social/indigo/atproto/identity for new projects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveDidToHandle

func ResolveDidToHandle(ctx context.Context, res did.Resolver, hr HandleResolver, udid string) (string, string, error)

Types

type HandleResolver

type HandleResolver interface {
	ResolveHandleToDid(ctx context.Context, handle string) (string, error)
}

type ProdHandleResolver

type ProdHandleResolver struct {
	ReqMod    func(*http.Request, string) error
	FailCache *arc.ARCCache[string, *failCacheItem]
	// contains filtered or unexported fields
}

func NewProdHandleResolver

func NewProdHandleResolver(failureCacheSize int, resolveAddr string, forceUDP bool) (*ProdHandleResolver, error)

func (*ProdHandleResolver) ResolveHandleToDid

func (dr *ProdHandleResolver) ResolveHandleToDid(ctx context.Context, handle string) (string, error)

type TestHandleResolver

type TestHandleResolver struct {
	TrialHosts []string
}

func (*TestHandleResolver) ResolveHandleToDid

func (tr *TestHandleResolver) ResolveHandleToDid(ctx context.Context, handle string) (string, error)

Jump to

Keyboard shortcuts

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