Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter provides an ethernet service
func NewAdapter ¶
func NewAdapter( signaler string, key string, ice []string, config *AdapterConfig, ctx context.Context, ) *Adapter
NewAdapter creates the adapter
type AdapterConfig ¶
type AdapterConfig struct { *wrtcconn.AdapterConfig Device string // Name to give to the TAP device OnSignalerConnect func(string) // Handler to be called when the adapter has connected to the signaler OnPeerConnect func(string) // Handler to be called when the adapter has connected to a peer OnPeerDisconnected func(string) // Handler to be called when the adapter has received a message Parallel int // Maximum amount of goroutines to use to unmarshal ethernet frames }
AdapterConfig configures the adapter
Click to show internal directories.
Click to hide internal directories.