Cleanup Candidate interface

Remove setLastSent and setLastReceived from Candidate interface
This commit is contained in:
Sean DuBois
2019-05-24 15:55:42 -07:00
parent 63b37975b6
commit 14ec800dc4
+16 -18
View File
@@ -17,25 +17,23 @@ const (
// Candidate represents an ICE candidate
type Candidate interface {
start(a *Agent, conn net.PacketConn)
Component() uint16
IP() net.IP
LastReceived() time.Time
LastSent() time.Time
NetworkType() NetworkType
Port() int
Priority() uint32
RelatedAddress() *CandidateRelatedAddress
String() string
Type() CandidateType
Equal(other Candidate) bool
addr() net.Addr
setLastSent(t time.Time)
seen(outbound bool)
LastSent() time.Time
setLastReceived(t time.Time)
LastReceived() time.Time
String() string
Equal(other Candidate) bool
Priority() uint32
writeTo(raw []byte, dst Candidate) (int, error)
close() error
IP() net.IP
Port() int
Component() uint16
NetworkType() NetworkType
Type() CandidateType
RelatedAddress() *CandidateRelatedAddress
seen(outbound bool)
start(a *Agent, conn net.PacketConn)
writeTo(raw []byte, dst Candidate) (int, error)
}