forked from pion/stun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: use ClientOption variadic instead of ClientOptions struct
- Loading branch information
Showing
6 changed files
with
129 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pkg github.com/gortc/stun, func NewClient(Connection, ...ClientOption) (*Client, error) | ||
pkg github.com/gortc/stun, func WithAgent(ClientAgent) ClientOption | ||
pkg github.com/gortc/stun, func WithClock(Clock) ClientOption | ||
pkg github.com/gortc/stun, func WithCollector(Collector) ClientOption | ||
pkg github.com/gortc/stun, func WithHandler(Handler) ClientOption | ||
pkg github.com/gortc/stun, func WithRTO(time.Duration) ClientOption | ||
pkg github.com/gortc/stun, func WithTimeoutRate(time.Duration) ClientOption | ||
pkg github.com/gortc/stun, type ClientOption func(*Client) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.