// NewRandomWriteScheduler constructs a WriteScheduler that ignores HTTP/2 // priorities. Control frames like SETTINGS and PING are written before DATA // frames, but if no control frames are queued and multiple streams have queued // HEADERS or DATA frames, Pop selects a ready stream arbitrarily. func NewRandomWriteScheduler() WriteScheduler { … } type randomWriteScheduler … func (ws *randomWriteScheduler) OpenStream(streamID uint32, options OpenStreamOptions) { … } func (ws *randomWriteScheduler) CloseStream(streamID uint32) { … } func (ws *randomWriteScheduler) AdjustStream(streamID uint32, priority PriorityParam) { … } func (ws *randomWriteScheduler) Push(wr FrameWriteRequest) { … } func (ws *randomWriteScheduler) Pop() (FrameWriteRequest, bool) { … }