Documentation
¶
Index ¶
- func DidToDocUrl(did string) (string, error)
- func ResolveHandle(ctx context.Context, cli *http.Client, handle string) (string, error)
- func ResolveHandleFromTXT(ctx context.Context, handle string) (string, error)
- func ResolveHandleFromWellKnown(ctx context.Context, cli *http.Client, handle string) (string, error)
- func ResolveService(ctx context.Context, cli *http.Client, did string) (string, error)
- type BackingCache
- type DidAuditEntry
- type DidAuditLog
- type DidData
- type DidDoc
- type DidDocService
- type DidDocVerificationMethod
- type DidLog
- type DidLogEntry
- type MemCache
- func (mc *MemCache) BustDid(handle string) error
- func (mc *MemCache) BustDoc(did string) error
- func (mc *MemCache) GetDid(handle string) (string, bool)
- func (mc *MemCache) GetDoc(did string) (*DidDoc, bool)
- func (mc *MemCache) PutDid(handle string, did string) error
- func (mc *MemCache) PutDoc(did string, doc *DidDoc) error
- type OperationService
- type Passport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DidToDocUrl ¶
func ResolveHandle ¶
func ResolveHandleFromTXT ¶
Types ¶
type BackingCache ¶
type DidAuditEntry ¶
type DidAuditEntry struct {
Did string `json:"did"`
Operation DidLogEntry `json:"operation"`
Cid string `json:"cid"`
Nullified bool `json:"nullified"`
CreatedAt string `json:"createdAt"`
}
type DidData ¶
type DidDoc ¶
type DidDoc struct {
Context []string `json:"@context"`
Id string `json:"id"`
AlsoKnownAs []string `json:"alsoKnownAs"`
VerificationMethods []DidDocVerificationMethod `json:"verificationMethod"`
Service []DidDocService `json:"service"`
}
type DidDocService ¶
type DidLog ¶
type DidLog []DidLogEntry
type DidLogEntry ¶
type DidLogEntry struct {
Sig string `json:"sig"`
Prev *string `json:"prev"`
Type string `json:"string"`
Services map[string]OperationService `json:"services"`
AlsoKnownAs []string `json:"alsoKnownAs"`
RotationKeys []string `json:"rotationKeys"`
VerificationMethods map[string]string `json:"verificationMethods"`
}
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
func NewMemCache ¶
type OperationService ¶
type Passport ¶
type Passport struct {
// contains filtered or unexported fields
}
func NewPassport ¶
func NewPassport(h *http.Client, bc BackingCache) *Passport
Click to show internal directories.
Click to hide internal directories.