resolve

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 10 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package resolve provides helpers for resolving various ATProto elements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DidBytes

func DidBytes(ctx context.Context, did string) ([]byte, error)

func Handle

func Handle(ctx context.Context, handle string) (string, error)

Types

type ATURI added in v0.1.11

type ATURI struct {
	Authority  string
	Collection string
	RKey       string
}

func ATUriFromString added in v0.1.11

func ATUriFromString(s string) (*ATURI, error)

func (*ATURI) ATProtoPDSURL added in v0.1.11

func (a *ATURI) ATProtoPDSURL() (string, error)

func (*ATURI) ResolveAuthority added in v0.1.11

func (a *ATURI) ResolveAuthority() error

type DidDocument

type DidDocument struct {
	ID                 string `json:"id"`
	VerificationMethod []struct {
		ID                 string `json:"id"`
		Type               string `json:"type"`
		Controller         string `json:"controller"`
		PublicKeyMultibase string `json:"publicKeyMultibase"`
	} `json:"verificationMethod"`
	Service []struct {
		ID              string `json:"id"`
		Type            string `json:"type"`
		ServiceEndpoint string `json:"serviceEndpoint"`
	} `json:"service"`
	AlsoKnownAs []string `json:"alsoKnownAs"`
}

func Did

func Did(ctx context.Context, did string) (*DidDocument, error)

Jump to

Keyboard shortcuts

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