Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type FlowControl ¶
type FlowControl interface { Wait(n uint32) (ok bool) // Ждем разрешения на отправку пакета длиной n. Если ok == false, стрим больше не может отправлять данные Disable() // Переводит flow control в невалидное состояние Add(n uint32) // Увеличение размера окна на отправку Reset(n uint32) // Сбрасывает состояние }
type HPackFieldWriter ¶
type LoaderReporter ¶
type LoaderReporter interface {
Acquire(tag string, streamID uint32) StreamState
}
type Reporter ¶
type Reporter interface { LoaderReporter Run() error Close() error }
type Stream ¶
type Stream interface { ID() uint32 FC() FlowControl StreamState }
type StreamState ¶
type StreamState interface { RequestError(error) // не смогли подготовить запрос: не смогли декодировать запрос, привысили лимиты сервера (SettingMaxHeaderListSize) etc FirstByteSent() // отправили первый байт LastByteSent() // отправили последний байт SetSize(int) // сообщаем какой размер у данного унарного стрима OnHeader(name, value string) // сообщаем хедеры по мере их получения IoError(error) // сообщаем стриму, что получили ошибку ввода/вывода RSTStream(code http2.ErrCode) // если получили RST_STREAM GoAway(code http2.ErrCode, debugData []byte) // получен фрейм goaway со stream id > текущего Timeout() // случился таймаут стрима End() // завершение стрима. отправляет результат в отчет }
type StreamStore ¶
type Streams ¶ added in v0.1.2
type Streams struct { Pool StreamsPool Limiter StreamsLimiter Store StreamStore }
type StreamsLimiter ¶ added in v0.1.2
type StreamsLimiter interface { WaitAllow() // дождаться разрешение лимитера на создание нового стрима Release() // сообщить о завершении стрима }
type StreamsPool ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.