Documentation ¶
Index ¶
Constants ¶
View Source
const AppTopicTraversal = "Traversal"
AppTopicTraversal the topic that traversal events are published on
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID string `json:"id"` Stage string `json:"stage"` Successful bool `json:"successful"` Error error `json:"error,omitempty"` }
Event represents a NAT traversal related event
func BuildFailureEvent ¶
BuildFailureEvent returns new event for failed NAT traversal
func BuildSuccessfulEvent ¶
BuildSuccessfulEvent returns new event for successful NAT traversal
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender allows subscribing to NAT events and sends them to server
Click to show internal directories.
Click to hide internal directories.