Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.1 kB · 41 lines
123456789101112131415161718192021222324252627282930313233343536373839404142// Code generated by glex; DO NOT EDIT.
// Lexicon schema: place.stream.ingest.defs
package placestream
import ( "io"
glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen")
// IngestDefs_Ingest is a "ingest" in the place.stream.ingest.defs schema.//// An ingest URL for a Streamplace station.type IngestDefs_Ingest struct { LexiconTypeID string `json:"$type,omitempty"` // type: The type of ingest endpoint, currently 'rtmp' and 'whip' are supported. Type string `json:"type"` // url: The URL of the ingest endpoint. Url string `json:"url"`}
// RecordTypeID implements glex.Record.func (t *IngestDefs_Ingest) RecordTypeID() string { return "place.stream.ingest.defs#ingest" }
func (t *IngestDefs_Ingest) 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.ingest.defs#ingest" return glex.MarshalCBOR(w, &cp)}
func (t *IngestDefs_Ingest) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}