Bluemage/go/api/subreddits_delete.go

23 lines
474 B
Go
Raw Normal View History

2024-08-15 21:37:02 +07:00
package api
import (
"context"
"github.com/tigorlazuardi/bluemage/go/pkg/telemetry"
)
type SubredditDeleteRequest struct {
Name string
DeleteImages bool
}
func (api *API) SubredditDelete(ctx context.Context, request SubredditDeleteRequest) (numberOfImagesToDelete int, err error) {
ctx, span := tracer.Start(ctx, "SubredditDelete")
defer func() { telemetry.EndWithStatus(span, err) }()
if request.DeleteImages {
}
return numberOfImagesToDelete, nil
}