Move pkg/ice to internal/ice

Avoid exposing any non-standard API.
This commit is contained in:
Michael MacDonald
2019-03-01 07:39:19 -05:00
parent a202ccbf2f
commit dc966e04a9
17 changed files with 2647 additions and 0 deletions

31
errors.go Normal file
View File

@@ -0,0 +1,31 @@
package ice
import (
"github.com/pkg/errors"
)
var (
// ErrUnknownType indicates an error with Unknown info.
ErrUnknownType = errors.New("Unknown")
// ErrSchemeType indicates the scheme type could not be parsed.
ErrSchemeType = errors.New("unknown scheme type")
// ErrSTUNQuery indicates query arguments are provided in a STUN URL.
ErrSTUNQuery = errors.New("queries not supported in stun address")
// ErrInvalidQuery indicates an malformed query is provided.
ErrInvalidQuery = errors.New("invalid query")
// ErrHost indicates malformed hostname is provided.
ErrHost = errors.New("invalid hostname")
// ErrPort indicates malformed port is provided.
ErrPort = errors.New("invalid port")
// ErrProtoType indicates an unsupported transport type was provided.
ErrProtoType = errors.New("invalid transport protocol type")
// ErrClosed indicates the agent is closed
ErrClosed = errors.New("the agent is closed")
)