hydrator

package
v0.0.0-...-1b9bfcf Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hydrator

type Hydrator struct {
	Cache             *ristretto.Cache
	AuthInfo          *xrpc.AuthInfo
	Context           context.Context
	Client            *xrpc.Client
	IdentityDirectory identity.Directory
	Ratelimit         ratelimit.Limiter // Rate limiting for authenticated endpoints. May be called by other packages whenever they make a rate-limited request.
}

func MakeHydrator

func MakeHydrator(ctx context.Context, cacheSize int64, authInfo *xrpc.AuthInfo) (*Hydrator, error)

func (*Hydrator) GetIdentitiesInRepo

func (h *Hydrator) GetIdentitiesInRepo(repo *repo.Repo) ([]atpidentity.Identity, error)

func (*Hydrator) GetRepoBytes

func (h *Hydrator) GetRepoBytes(actorDid string, pdsEndpoint string) ([]byte, error)

func (*Hydrator) Hydrate

func (h *Hydrator) Hydrate(val interface{}, actorDid string) (result map[string]interface{}, err error)

func (*Hydrator) LookupIdentity

func (h *Hydrator) LookupIdentity(identifier string) (identity *atpidentity.Identity, err error)

Jump to

Keyboard shortcuts

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