Live video on the AT Protocol
at eli/rtmp-push 41 lines 1.1 kB 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.MultistreamTarget{}, 30 streamplace.BroadcastOrigin{}, 31 streamplace.BroadcastSyndication{}, 32 streamplace.MetadataConfiguration{}, 33 streamplace.MetadataDistributionPolicy{}, 34 streamplace.MetadataContentRights{}, 35 streamplace.MetadataContentWarnings{}, 36 streamplace.ModerationPermission{}, 37 streamplace.LiveRecommendations{}, 38 ); err != nil { 39 panic(err) 40 } 41}