Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: org.tangled.temp.spindle.moderation.getBan
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( TempSpindleModerationGetBanNSID = "org.tangled.temp.spindle.moderation.getBan")
// TempSpindleModerationGetBan_Output is the output of a org.tangled.temp.spindle.moderation.getBan call.type TempSpindleModerationGetBan_Output struct { // ban: active ban matching the requested DID Ban *TempSpindleModerationDefs_Ban `json:"ban" cborgen:"ban"`}
// TempSpindleModerationGetBan calls the XRPC method "org.tangled.temp.spindle.moderation.getBan".//// did: DID of the repository or account owner to look upfunc TempSpindleModerationGetBan(ctx context.Context, c util.LexClient, did string) (*TempSpindleModerationGetBan_Output, error) { var out TempSpindleModerationGetBan_Output
params := map[string]interface{}{} params["did"] = did if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.spindle.moderation.getBan", params, nil, &out); err != nil { return nil, err }
return &out, nil}