Live video on the AT Protocol
1package main 2 3import ( 4 "stream.place/streamplace/pkg/streamplace" 5 6 cbg "github.com/whyrusleeping/cbor-gen" 7) 8 9func main() { 10 genCfg := cbg.Gen{ 11 MaxStringLength: 1_000_000, 12 } 13 14 if err := genCfg.WriteMapEncodersToFile("pkg/streamplace/cbor_gen.go", "streamplace", 15 streamplace.Key{}, 16 streamplace.Livestream{}, 17 streamplace.Segment{}, 18 streamplace.Segment_Audio{}, 19 streamplace.Segment_Video{}, 20 streamplace.Segment_Framerate{}, 21 streamplace.ChatMessage{}, 22 streamplace.RichtextFacet{}, 23 streamplace.ChatProfile{}, 24 streamplace.ChatProfile_Color{}, 25 streamplace.ChatMessage_ReplyRef{}, 26 streamplace.ServerSettings{}, 27 streamplace.ChatGate{}, 28 streamplace.BroadcastOrigin{}, 29 streamplace.BroadcastSyndication{}, 30 streamplace.MetadataConfiguration{}, 31 streamplace.MetadataDistributionPolicy{}, 32 streamplace.MetadataContentRights{}, 33 streamplace.MetadataContentWarnings{}, 34 ); err != nil { 35 panic(err) 36 } 37}