porting all github actions from bluesky-social/indigo to tangled CI
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.unspecced.getPopularFeedGenerators 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// UnspeccedGetPopularFeedGenerators_Output is the output of a app.bsky.unspecced.getPopularFeedGenerators call. 14type UnspeccedGetPopularFeedGenerators_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Feeds []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"` 17} 18 19// UnspeccedGetPopularFeedGenerators calls the XRPC method "app.bsky.unspecced.getPopularFeedGenerators". 20func UnspeccedGetPopularFeedGenerators(ctx context.Context, c util.LexClient, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) { 21 var out UnspeccedGetPopularFeedGenerators_Output 22 23 params := map[string]interface{}{} 24 if cursor != "" { 25 params["cursor"] = cursor 26 } 27 if limit != 0 { 28 params["limit"] = limit 29 } 30 if query != "" { 31 params["query"] = query 32 } 33 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil { 34 return nil, err 35 } 36 37 return &out, nil 38}