event

package
v2.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: BSD-3-Clause Imports: 4 Imported by: 2

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

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

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

type SnowflakeEvent

type SnowflakeEvent interface {
	IsSnowflakeEvent()
	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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL