Versions in this module Expand all Collapse all v0 v0.1.0 Feb 3, 2016 Changes in this version + const FRAME_WORKERS + const QUEUE_SIZE + var DEBUG = os.Getenv("DEBUG") + var ErrInvalidStreamId = errors.New("Invalid stream id") + var ErrReset = errors.New("Stream reset") + var ErrTimeout = errors.New("Timeout occured") + var ErrUnreadPartialData = errors.New("unread partial data") + var ErrWriteClosedStream = errors.New("Write on closed stream") + func MirrorStreamHandler(stream *Stream) + func NoOpStreamHandler(stream *Stream) + type AuthHandler func(header http.Header, slot uint8, parent uint32) bool + type Connection struct + func NewConnection(conn net.Conn, server bool) (*Connection, error) + func (s *Connection) Close() error + func (s *Connection) CloseChan() <-chan bool + func (s *Connection) CloseWait() error + func (s *Connection) CreateStream(headers http.Header, parent *Stream, fin bool) (*Stream, error) + func (s *Connection) FindStream(streamId uint32) *Stream + func (s *Connection) NotifyClose(c chan<- *Stream, timeout time.Duration) + func (s *Connection) PeekNextStreamId() spdy.StreamId + func (s *Connection) Ping() (time.Duration, error) + func (s *Connection) Serve(newHandler StreamHandler) + func (s *Connection) SetCloseTimeout(timeout time.Duration) + func (s *Connection) SetIdleTimeout(timeout time.Duration) + func (s *Connection) Wait(waitTimeout time.Duration) error + type PriorityFrameQueue struct + func NewPriorityFrameQueue(size int) *PriorityFrameQueue + func (q *PriorityFrameQueue) Drain() + func (q *PriorityFrameQueue) Pop() spdy.Frame + func (q *PriorityFrameQueue) Push(frame spdy.Frame, priority uint8) + type Stream struct + func (s *Stream) Cancel() error + func (s *Stream) Close() error + func (s *Stream) CreateSubStream(headers http.Header, fin bool) (*Stream, error) + func (s *Stream) Headers() http.Header + func (s *Stream) Identifier() uint32 + func (s *Stream) IsFinished() bool + func (s *Stream) LocalAddr() net.Addr + func (s *Stream) Parent() *Stream + func (s *Stream) Read(p []byte) (n int, err error) + func (s *Stream) ReadData() ([]byte, error) + func (s *Stream) ReceiveHeader() (http.Header, error) + func (s *Stream) Refuse() error + func (s *Stream) RemoteAddr() net.Addr + func (s *Stream) Reset() error + func (s *Stream) SendHeader(headers http.Header, fin bool) error + func (s *Stream) SendReply(headers http.Header, fin bool) error + func (s *Stream) SetDeadline(t time.Time) error + func (s *Stream) SetPriority(priority uint8) + func (s *Stream) SetReadDeadline(t time.Time) error + func (s *Stream) SetWriteDeadline(t time.Time) error + func (s *Stream) String() string + func (s *Stream) Wait() error + func (s *Stream) WaitTimeout(timeout time.Duration) error + func (s *Stream) Write(data []byte) (n int, err error) + func (s *Stream) WriteData(data []byte, fin bool) error + type StreamHandler func(stream *Stream)