Documentation ¶
Index ¶
- func ResolveDidToHandle(ctx context.Context, res did.Resolver, hr HandleResolver, udid string) (string, string, error)
- type CreateOp
- type HandleResolver
- type PLCServer
- func (s *PLCServer) CreateDID(ctx context.Context, sigkey *did.PrivKey, recovery string, handle string, ...) (string, error)
- func (s *PLCServer) FlushCacheFor(did string)
- func (s *PLCServer) GetDocument(ctx context.Context, didstr string) (*did.Document, error)
- func (s *PLCServer) UpdateUserHandle(ctx context.Context, did string, handle string) error
- type ProdHandleResolver
- type TestHandleResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOp ¶
type CreateOp struct { Type string `json:"type" cborgen:"type"` SigningKey string `json:"signingKey" cborgen:"signingKey"` RecoveryKey string `json:"recoveryKey" cborgen:"recoveryKey"` Handle string `json:"handle" cborgen:"handle"` Service string `json:"service" cborgen:"service"` Prev *string `json:"prev" cborgen:"prev"` Sig string `json:"sig" cborgen:"sig,omitempty"` }
type HandleResolver ¶
type PLCServer ¶
func (*PLCServer) FlushCacheFor ¶
func (*PLCServer) GetDocument ¶
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 ¶
type TestHandleResolver ¶
type TestHandleResolver struct {
TrialHosts []string
}
func (*TestHandleResolver) ResolveHandleToDid ¶
Click to show internal directories.
Click to hide internal directories.