Live video on the AT Protocol
at eli/multitesting 38 lines 976 B view raw
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.Livestream_NotificationSettings{}, 18 streamplace.Segment{}, 19 streamplace.Segment_Audio{}, 20 streamplace.Segment_Video{}, 21 streamplace.Segment_Framerate{}, 22 streamplace.ChatMessage{}, 23 streamplace.RichtextFacet{}, 24 streamplace.ChatProfile{}, 25 streamplace.ChatProfile_Color{}, 26 streamplace.ChatMessage_ReplyRef{}, 27 streamplace.ServerSettings{}, 28 streamplace.ChatGate{}, 29 streamplace.BroadcastOrigin{}, 30 streamplace.BroadcastSyndication{}, 31 streamplace.MetadataConfiguration{}, 32 streamplace.MetadataDistributionPolicy{}, 33 streamplace.MetadataContentRights{}, 34 streamplace.MetadataContentWarnings{}, 35 ); err != nil { 36 panic(err) 37 } 38}