Redmage/api/subreddits_check.go

17 lines
372 B
Go
Raw Normal View History

2024-04-26 10:51:09 +07:00
package api
import (
"context"
"github.com/tigorlazuardi/redmage/api/reddit"
)
type SubredditCheckParam = reddit.CheckSubredditParams
func (api *API) SubredditCheck(ctx context.Context, params SubredditCheckParam) (actual string, err error) {
ctx, span := tracer.Start(ctx, "*API.SubredditCheck")
defer span.End()
return api.reddit.CheckSubreddit(ctx, params)
}