Documentation ¶
Index ¶
- Constants
- func SetLogHandler(handler slog.Handler)
- type Announcement
- type Location
- type LocationMode
- type ReceiveSubscription
- type Role
- type SendSubscription
- func (s *SendSubscription) Accept()
- func (s *SendSubscription) EndGroup() Location
- func (s *SendSubscription) EndObject() Location
- func (s *SendSubscription) Namespace() string
- func (s *SendSubscription) NewGroupHeaderStream(groupID, objectSendOrder uint64) (*groupHeaderStream, error)
- func (s *SendSubscription) NewObjectPreferDatagram(groupID, objectID, objectSendOrder uint64, payload []byte) error
- func (s *SendSubscription) NewObjectStream(groupID, objectID, objectSendOrder uint64) (*objectStream, error)
- func (s *SendSubscription) NewTrackHeaderStream(objectSendOrder uint64) (*TrackHeaderStream, error)
- func (s *SendSubscription) Reject(err error)
- func (s *SendSubscription) SetExpires(d time.Duration)
- func (s *SendSubscription) StartGroup() Location
- func (s *SendSubscription) StartObject() Location
- func (s *SendSubscription) Trackname() string
- type Server
- func (s *Server) Listen(ctx context.Context, l listener) error
- func (s *Server) ListenQUIC(ctx context.Context, addr string) error
- func (s *Server) ListenQUICListener(ctx context.Context, listener *quic.Listener) error
- func (s *Server) ListenWebTransport(ctx context.Context, addr string) error
- func (s *Server) ListenWebTransportPath(ctx context.Context, addr, path string) error
- type Session
- func DialQUIC(addr string, role Role) (*Session, error)
- func DialQUICConn(conn quic.Connection, role Role) (*Session, error)
- func DialWebTransport(addr string, role Role) (*Session, error)
- func NewWebtransportServerSession(ctx context.Context, conn *webtransport.Session, enableDatagrams bool) (*Session, error)
- func (s *Session) Announce(ctx context.Context, namespace string) error
- func (s *Session) CloseWithError(code uint64, msg string)
- func (s *Session) ReadAnnouncement(ctx context.Context) (*Announcement, error)
- func (s *Session) ReadSubscription(ctx context.Context) (*SendSubscription, error)
- func (s *Session) Subscribe(ctx context.Context, subscribeID, trackAlias uint64, ...) (*ReceiveSubscription, error)
- type SessionHandler
- type SessionHandlerFunc
- type TrackHeaderStream
- type TrackHeaderStreamObject
Constants ¶
View Source
const ( DRAFT_IETF_MOQ_TRANSPORT_00 = 0xff000000 DRAFT_IETF_MOQ_TRANSPORT_01 = 0xff000001 DRAFT_IETF_MOQ_TRANSPORT_02 = 0xff000002 CURRENT_VERSION = DRAFT_IETF_MOQ_TRANSPORT_02 )
Variables ¶
This section is empty.
Functions ¶
func SetLogHandler ¶ added in v0.2.0
Types ¶
type Announcement ¶ added in v0.2.0
type Announcement struct {
// contains filtered or unexported fields
}
func (*Announcement) Accept ¶ added in v0.2.0
func (a *Announcement) Accept()
func (*Announcement) Namespace ¶ added in v0.2.0
func (a *Announcement) Namespace() string
func (*Announcement) Reject ¶ added in v0.2.0
func (a *Announcement) Reject(err error)
type Location ¶ added in v0.2.0
type Location struct { Mode LocationMode Value uint64 }
type LocationMode ¶ added in v0.2.0
type LocationMode int
const ( LocationModeNone LocationMode = iota LocationModeAbsolute LocationModeRelativePrevious LocationModeRelativeNext )
type ReceiveSubscription ¶ added in v0.2.0
type ReceiveSubscription struct {
// contains filtered or unexported fields
}
type SendSubscription ¶ added in v0.2.0
type SendSubscription struct {
// contains filtered or unexported fields
}
func (*SendSubscription) Accept ¶ added in v0.2.0
func (s *SendSubscription) Accept()
func (*SendSubscription) EndGroup ¶ added in v0.2.0
func (s *SendSubscription) EndGroup() Location
func (*SendSubscription) EndObject ¶ added in v0.2.0
func (s *SendSubscription) EndObject() Location
func (*SendSubscription) Namespace ¶ added in v0.2.0
func (s *SendSubscription) Namespace() string
func (*SendSubscription) NewGroupHeaderStream ¶ added in v0.2.0
func (s *SendSubscription) NewGroupHeaderStream(groupID, objectSendOrder uint64) (*groupHeaderStream, error)
func (*SendSubscription) NewObjectPreferDatagram ¶ added in v0.2.0
func (s *SendSubscription) NewObjectPreferDatagram(groupID, objectID, objectSendOrder uint64, payload []byte) error
func (*SendSubscription) NewObjectStream ¶ added in v0.2.0
func (s *SendSubscription) NewObjectStream(groupID, objectID, objectSendOrder uint64) (*objectStream, error)
func (*SendSubscription) NewTrackHeaderStream ¶ added in v0.2.0
func (s *SendSubscription) NewTrackHeaderStream(objectSendOrder uint64) (*TrackHeaderStream, error)
func (*SendSubscription) Reject ¶ added in v0.2.0
func (s *SendSubscription) Reject(err error)
func (*SendSubscription) SetExpires ¶ added in v0.2.0
func (s *SendSubscription) SetExpires(d time.Duration)
func (*SendSubscription) StartGroup ¶ added in v0.2.0
func (s *SendSubscription) StartGroup() Location
func (*SendSubscription) StartObject ¶ added in v0.2.0
func (s *SendSubscription) StartObject() Location
func (*SendSubscription) Trackname ¶ added in v0.2.0
func (s *SendSubscription) Trackname() string
type Server ¶
type Server struct { Handler SessionHandler TLSConfig *tls.Config // contains filtered or unexported fields }
func (*Server) ListenQUICListener ¶ added in v0.2.0
func (*Server) ListenWebTransport ¶
type Session ¶ added in v0.2.0
type Session struct {
// contains filtered or unexported fields
}
func DialQUICConn ¶ added in v0.2.0
func NewWebtransportServerSession ¶ added in v0.2.0
func (*Session) CloseWithError ¶ added in v0.2.0
func (*Session) ReadAnnouncement ¶ added in v0.2.0
func (s *Session) ReadAnnouncement(ctx context.Context) (*Announcement, error)
func (*Session) ReadSubscription ¶ added in v0.2.0
func (s *Session) ReadSubscription(ctx context.Context) (*SendSubscription, error)
type SessionHandler ¶ added in v0.2.0
type SessionHandler interface {
Handle(*Session)
}
type SessionHandlerFunc ¶ added in v0.2.0
type SessionHandlerFunc func(*Session)
func (SessionHandlerFunc) Handle ¶ added in v0.2.0
func (h SessionHandlerFunc) Handle(p *Session)
type TrackHeaderStream ¶ added in v0.2.0
type TrackHeaderStream struct {
// contains filtered or unexported fields
}
func (*TrackHeaderStream) Close ¶ added in v0.2.0
func (s *TrackHeaderStream) Close() error
func (*TrackHeaderStream) NewObject ¶ added in v0.2.0
func (s *TrackHeaderStream) NewObject(groupID, objectID uint64) *TrackHeaderStreamObject
type TrackHeaderStreamObject ¶ added in v0.2.0
type TrackHeaderStreamObject struct {
// contains filtered or unexported fields
}
Source Files ¶
- announcement.go
- client.go
- connection.go
- errors.go
- group_header_stream.go
- group_header_stream_object.go
- location.go
- logging.go
- message.go
- object_stream.go
- parameter.go
- parameter_string.go
- parameter_varint.go
- quic_conn.go
- receive_subscription.go
- role.go
- send_subscription.go
- server.go
- session.go
- track_header_stream.go
- track_header_stream_object.go
- transport.go
- varintstring.go
- version.go
- webrtransport_conn.go
Click to show internal directories.
Click to hide internal directories.