[WIP] music platform user data scraper
teal-fm atproto
at main 1.1 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.moderation.searchRepos 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ModerationSearchRepos_Output is the output of a tools.ozone.moderation.searchRepos call. 14type ModerationSearchRepos_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Repos []*ModerationDefs_RepoView `json:"repos" cborgen:"repos"` 17} 18 19// ModerationSearchRepos calls the XRPC method "tools.ozone.moderation.searchRepos". 20// 21// term: DEPRECATED: use 'q' instead 22func ModerationSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) { 23 var out ModerationSearchRepos_Output 24 25 params := map[string]interface{}{ 26 "cursor": cursor, 27 "limit": limit, 28 "q": q, 29 "term": term, 30 } 31 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}