A fork of https://github.com/teal-fm/piper
at main 32 lines 858 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package teal 4 5// schema: fm.teal.alpha.actor.getProfile 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// AlphaActorGetProfile_Output is the output of a fm.teal.alpha.actor.getProfile call. 14type AlphaActorGetProfile_Output struct { 15 Actor *AlphaActorDefs_ProfileView `json:"actor" cborgen:"actor"` 16} 17 18// AlphaActorGetProfile calls the XRPC method "fm.teal.alpha.actor.getProfile". 19// 20// actor: The author's DID 21func AlphaActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*AlphaActorGetProfile_Output, error) { 22 var out AlphaActorGetProfile_Output 23 24 params := map[string]interface{}{ 25 "actor": actor, 26 } 27 if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.getProfile", params, nil, &out); err != nil { 28 return nil, err 29 } 30 31 return &out, nil 32}