Documentation
¶
Overview ¶
Automod development helpers for fetching and saving snapshots of real-world content and metadata.
NOTE: real-world content is sensitive, even if it is abusive.
Index ¶
- func FetchAndProcessRecent(ctx context.Context, eng *automod.Engine, atid syntax.AtIdentifier, limit int) error
- func FetchAndProcessRecord(ctx context.Context, eng *automod.Engine, aturi syntax.ATURI) error
- func FetchRecent(ctx context.Context, eng *automod.Engine, atid syntax.AtIdentifier, limit int) (*identity.Identity, []*comatproto.RepoListRecords_Record, error)
- func ProcessCaptureRules(eng *automod.Engine, capture AccountCapture) error
- type AccountCapture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAndProcessRecent ¶
func FetchAndProcessRecord ¶
func FetchRecent ¶
func FetchRecent(ctx context.Context, eng *automod.Engine, atid syntax.AtIdentifier, limit int) (*identity.Identity, []*comatproto.RepoListRecords_Record, error)
func ProcessCaptureRules ¶
func ProcessCaptureRules(eng *automod.Engine, capture AccountCapture) error
Test helper which processes all the records from a capture. Intentionally exported, for use in other packages.
This method replaces any pre-existing directory on the engine with a mock directory.
Types ¶
type AccountCapture ¶
type AccountCapture struct { CapturedAt syntax.Datetime `json:"capturedAt"` AccountMeta automod.AccountMeta `json:"accountMeta"` PostRecords []comatproto.RepoListRecords_Record `json:"postRecords"` }
func CaptureRecent ¶
func CaptureRecent(ctx context.Context, eng *automod.Engine, atid syntax.AtIdentifier, limit int) (*AccountCapture, error)
func MustLoadCapture ¶
func MustLoadCapture(capPath string) AccountCapture
Click to show internal directories.
Click to hide internal directories.