Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.pull.listPullViews
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( PullListPullViewsNSID = "sh.tangled.pull.listPullViews")
// PullListPullViews_Output is the output of a sh.tangled.pull.listPullViews call.type PullListPullViews_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Items []*PullDefs_PullView `json:"items" cborgen:"items"`}
// PullListPullViews calls the XRPC method "sh.tangled.pull.listPullViews".//// cursor: Pagination cursor// subject: Repo DID to list pulls forfunc PullListPullViews(ctx context.Context, c util.LexClient, cursor string, limit int64, state string, subject string) (*PullListPullViews_Output, error) { var out PullListPullViews_Output
params := map[string]interface{}{} if cursor != "" { params["cursor"] = cursor } if limit != 0 { params["limit"] = limit } if state != "" { params["state"] = state } params["subject"] = subject if err := c.LexDo(ctx, util.Query, "", "sh.tangled.pull.listPullViews", params, nil, &out); err != nil { return nil, err }
return &out, nil}