Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventOnBrokerRendezvous ¶
type EventOnBrokerRendezvous struct { SnowflakeEvent WebRTCRemoteDescription *webrtc.SessionDescription Error error }
func (EventOnBrokerRendezvous) String ¶ added in v2.2.0
func (e EventOnBrokerRendezvous) String() string
type EventOnCurrentNATTypeDetermined ¶ added in v2.4.0
type EventOnCurrentNATTypeDetermined struct { SnowflakeEvent CurNATType string }
func (EventOnCurrentNATTypeDetermined) String ¶ added in v2.4.0
func (e EventOnCurrentNATTypeDetermined) String() string
type EventOnOfferCreated ¶
type EventOnOfferCreated struct { SnowflakeEvent WebRTCLocalDescription *webrtc.SessionDescription Error error }
func (EventOnOfferCreated) String ¶ added in v2.2.0
func (e EventOnOfferCreated) String() string
type EventOnProxyConnectionOver ¶
type EventOnProxyConnectionOver struct { SnowflakeEvent InboundTraffic int64 OutboundTraffic int64 }
func (EventOnProxyConnectionOver) String ¶ added in v2.2.0
func (e EventOnProxyConnectionOver) String() string
type EventOnProxyStarting ¶ added in v2.4.0
type EventOnProxyStarting struct {
SnowflakeEvent
}
func (EventOnProxyStarting) String ¶ added in v2.4.0
func (e EventOnProxyStarting) String() string
type EventOnSnowflakeConnected ¶
type EventOnSnowflakeConnected struct {
SnowflakeEvent
}
func (EventOnSnowflakeConnected) String ¶ added in v2.2.0
func (e EventOnSnowflakeConnected) String() string
type EventOnSnowflakeConnectionFailed ¶
type EventOnSnowflakeConnectionFailed struct { SnowflakeEvent Error error }
func (EventOnSnowflakeConnectionFailed) String ¶ added in v2.2.0
func (e EventOnSnowflakeConnectionFailed) String() string
type SnowflakeEventDispatcher ¶
type SnowflakeEventDispatcher interface { SnowflakeEventReceiver // AddSnowflakeEventListener allow receiver(s) to receive event notification // when OnNewSnowflakeEvent is called on the dispatcher. // Every event listener added will be called when an event is received by the dispatcher. // The order each listener is called is undefined. AddSnowflakeEventListener(receiver SnowflakeEventReceiver) RemoveSnowflakeEventListener(receiver SnowflakeEventReceiver) }
func NewSnowflakeEventDispatcher ¶
func NewSnowflakeEventDispatcher() SnowflakeEventDispatcher
type SnowflakeEventReceiver ¶
type SnowflakeEventReceiver interface { // OnNewSnowflakeEvent notify receiver about a new event // This method MUST not block OnNewSnowflakeEvent(event SnowflakeEvent) }
Click to show internal directories.
Click to hide internal directories.