Skip to content

Commit a046e0b

Browse files
committed
Fixes and Refactor
1 parent 471afae commit a046e0b

File tree

8 files changed

+461
-308
lines changed

8 files changed

+461
-308
lines changed

candidate.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,17 @@ type Candidate interface {
5656
// In the order of insertion, *(key value).
5757
// Extension attributes are defined in RFC 5245, Section 15.1:
5858
// https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
59-
Extensions() []string
60-
61-
// GetExtension retrieves the value of a specific extension attribute for the ICECandidate.
62-
// Extension attributes are defined in RFC 5245, Section 15.1:
63-
// https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
64-
GetExtension(name string) (value string, ok bool)
59+
Extensions() CandidateExtensions
6560

6661
String() string
6762
Type() CandidateType
6863
TCPType() TCPType
6964

7065
Equal(other Candidate) bool
7166

67+
// DeepEqual same as Equal, But it also compares the candidate extensions.
68+
DeepEqual(other Candidate) bool
69+
7270
Marshal() string
7371

7472
addr() net.Addr

0 commit comments

Comments
 (0)