Live video on the AT Protocol
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3// Lexicon schema: place.stream.multistream.putTarget
4
5package streamplace
6
7import (
8 "context"
9
10 lexutil "github.com/bluesky-social/indigo/lex/util"
11)
12
13// MultistreamPutTarget_Input is the input argument to a place.stream.multistream.putTarget call.
14type MultistreamPutTarget_Input struct {
15 MultistreamTarget *MultistreamTarget `json:"multistreamTarget" cborgen:"multistreamTarget"`
16 // rkey: The Record Key.
17 Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
18}
19
20// MultistreamPutTarget calls the XRPC method "place.stream.multistream.putTarget".
21func MultistreamPutTarget(ctx context.Context, c lexutil.LexClient, input *MultistreamPutTarget_Input) (*MultistreamDefs_TargetView, error) {
22 var out MultistreamDefs_TargetView
23 if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "place.stream.multistream.putTarget", nil, input, &out); err != nil {
24 return nil, err
25 }
26
27 return &out, nil
28}