Documentation ¶
Overview ¶
Package simulation contains utilities for simulating clients
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BotOptions ¶
type BotOptions struct { CoordinatorURL string Topic string Subscription map[string]bool TrackStats bool Log zerolog.Logger }
BotOptions ...
type Client ¶
type Client struct { SendReliable chan []byte SendUnreliable chan []byte StopReliableQueue chan bool StopUnreliableQueue chan bool PeerData chan peerData // contains filtered or unexported fields }
Client represents a peer with role CLIENT
type Config ¶
type Config struct { ICEServers []pion.ICEServer Auth authentication.ClientAuthenticator OnMessageReceived func(reliable bool, msgType protocol.MessageType, raw []byte) CoordinatorURL string Log logging.Logger }
Config is the client config
Click to show internal directories.
Click to hide internal directories.