Documentation ¶
Index ¶
- type Directory
- func (d *Directory) GetBatchEntriesForDID(ctx context.Context, dids []string) ([]DirectoryEntry, error)
- func (d *Directory) GetBatchEntriesForHandle(ctx context.Context, handles []string) ([]DirectoryEntry, error)
- func (d *Directory) GetEntryForDID(ctx context.Context, did string) (DirectoryEntry, error)
- func (d *Directory) GetEntryForHandle(ctx context.Context, handle string) (DirectoryEntry, error)
- func (d *Directory) Start()
- func (d *Directory) ValidateHandle(ctx context.Context, client *http.Client, did string, handle string) (bool, []error)
- func (d *Directory) ValidateHandlePage(ctx context.Context, pageSize int) bool
- func (d *Directory) ValidateHandles(ctx context.Context, pageSize int, timeBetweenLoops time.Duration)
- type DirectoryEntry
- type DirectoryJSONLRow
- type Operation
- type RawDirectoryEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct { Endpoint string PLCRateLimiter *rate.Limiter PDSRateLimiter *rate.Limiter CheckPeriod time.Duration AfterCursor time.Time Logger *zap.SugaredLogger ValidationTTL time.Duration RedisClient *redis.Client RedisPrefix string Store *store.Store // contains filtered or unexported fields }
func NewDirectory ¶
func (*Directory) GetBatchEntriesForDID ¶
func (*Directory) GetBatchEntriesForHandle ¶
func (*Directory) GetEntryForDID ¶
func (*Directory) GetEntryForHandle ¶
func (*Directory) ValidateHandle ¶
func (*Directory) ValidateHandlePage ¶
type DirectoryEntry ¶
type DirectoryJSONLRow ¶
type RawDirectoryEntry ¶
type RawDirectoryEntry struct {
JSON json.RawMessage
}
Click to show internal directories.
Click to hide internal directories.