Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
2.2 kB · 75 lines
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576// Code generated by glex; DO NOT EDIT.
// Lexicon schema: place.stream.multistream.deleteTarget
package placestream
import ( "context" "io"
glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen")
type MultistreamDeleteTarget_Input struct { LexiconTypeID string `json:"$type,omitempty"` // rkey: The Record Key of the target to delete. Rkey string `json:"rkey"`}
// RecordTypeID implements glex.Record.func (t *MultistreamDeleteTarget_Input) RecordTypeID() string { return "place.stream.multistream.deleteTarget"}
func (t *MultistreamDeleteTarget_Input) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.multistream.deleteTarget" return glex.MarshalCBOR(w, &cp)}
func (t *MultistreamDeleteTarget_Input) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
type MultistreamDeleteTarget_Output struct { LexiconTypeID string `json:"$type,omitempty"`}
// RecordTypeID implements glex.Record.func (t *MultistreamDeleteTarget_Output) RecordTypeID() string { return "place.stream.multistream.deleteTarget"}
func (t *MultistreamDeleteTarget_Output) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.multistream.deleteTarget" return glex.MarshalCBOR(w, &cp)}
func (t *MultistreamDeleteTarget_Output) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// MultistreamDeleteTarget calls the XRPC method "place.stream.multistream.deleteTarget".//// Delete a target for rebroadcasting a Streamplace stream.func MultistreamDeleteTarget(ctx context.Context, c glex.LexClient, input *MultistreamDeleteTarget_Input) (*MultistreamDeleteTarget_Output, error) { var out MultistreamDeleteTarget_Output
if err := c.LexDo(ctx, glex.Procedure, "application/json", "place.stream.multistream.deleteTarget", nil, input, &out); err != nil { return nil, err } return &out, nil}