stash/api/resolver_query_metadata.go

31 lines
732 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package api
import (
"context"
2019-02-10 02:53:08 +00:00
"github.com/stashapp/stash/manager"
2019-02-09 12:30:49 +00:00
)
func (r *queryResolver) MetadataScan(ctx context.Context) (string, error) {
manager.GetInstance().Scan()
return "todo", nil
}
func (r *queryResolver) MetadataImport(ctx context.Context) (string, error) {
manager.GetInstance().Import()
return "todo", nil
}
func (r *queryResolver) MetadataExport(ctx context.Context) (string, error) {
manager.GetInstance().Export()
return "todo", nil
}
func (r *queryResolver) MetadataGenerate(ctx context.Context) (string, error) {
2019-02-10 05:30:54 +00:00
manager.GetInstance().Generate(true, true, true, true)
return "todo", nil
2019-02-09 12:30:49 +00:00
}
func (r *queryResolver) MetadataClean(ctx context.Context) (string, error) {
panic("not implemented")
}