diff options
author | 2022-05-03 11:56:18 +0200 | |
---|---|---|
committer | 2022-05-03 10:56:18 +0100 | |
commit | d7b46a4b6377296054cb8facd9b2f9db8fea5bce (patch) | |
tree | 02d4d2b14235301a11759409881ffee966670780 /internal/processing/processor.go | |
parent | [documentation] Corrects the Helm-Chart URL by 0hlov3 (#530) (diff) | |
download | gotosocial-d7b46a4b6377296054cb8facd9b2f9db8fea5bce.tar.xz |
[chore] Move initial MediaRemotePrune to cmd.server function (#536)
* move initial prune up to the server start function
* don't do initial prune when starting media manager
* add admin/mediaremoteprune in processor
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r-- | internal/processing/processor.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 2b12acf52..69f3100f9 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -113,6 +113,8 @@ type Processor interface { AdminDomainBlockGet(ctx context.Context, authed *oauth.Auth, id string, export bool) (*apimodel.DomainBlock, gtserror.WithCode) // AdminDomainBlockDelete deletes one domain block, specified by ID, returning the deleted domain block. AdminDomainBlockDelete(ctx context.Context, authed *oauth.Auth, id string) (*apimodel.DomainBlock, gtserror.WithCode) + // AdminMediaRemotePrune triggers a prune of remote media according to the given number of mediaRemoteCacheDays + AdminMediaRemotePrune(ctx context.Context, mediaRemoteCacheDays int) gtserror.WithCode // AppCreate processes the creation of a new API application AppCreate(ctx context.Context, authed *oauth.Auth, form *apimodel.ApplicationCreateRequest) (*apimodel.Application, error) |