API: Initial api structure for creating datachannel and sctp information.

This commit is contained in:
backkem
2018-08-02 12:12:14 +02:00
committed by Sean DuBois
parent ceed0bb590
commit c85cded582
4 changed files with 202 additions and 0 deletions

View File

@@ -91,5 +91,33 @@ func (e *SyntaxError) Error() string {
return fmt.Sprintf("syntax error: %v", e.Err)
}
// Types of TypeError
var (
ErrInvalidValue = errors.New("invalid value")
)
// TypeError indicates an issue with a supplied value
type TypeError struct {
Err error
}
func (e *SyntaxError) Error() string {
return fmt.Sprintf("type error: %v", e.Err)
}
// Types of OperationError
var (
ErrMaxDataChannels = errors.New("maximum number of datachannels reached")
)
// OperationError indicates an issue with execution
type OperationError struct {
Err error
}
func (e *SyntaxError) Error() string {
return fmt.Sprintf("operation error: %v", e.Err)
}
// ErrUnknownType indicates a Unknown info
var ErrUnknownType = errors.New("Unknown")