-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lint scripts and CI configs.
- Loading branch information
Showing
6 changed files
with
170 additions
and
45 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
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,24 @@ | ||
package datachannel | ||
|
||
import "errors" | ||
|
||
var ( | ||
// ErrDataChannelMessageTooShort means that the data isn't long enough to be a valid DataChannel message | ||
ErrDataChannelMessageTooShort = errors.New("DataChannel message is not long enough to determine type") | ||
|
||
// ErrInvalidPayloadProtocolIdentifier means that we got a DataChannel messages with a Payload Protocol Identifier | ||
// we don't know how to handle | ||
ErrInvalidPayloadProtocolIdentifier = errors.New("DataChannel message Payload Protocol Identifier is value we can't handle") | ||
|
||
// ErrInvalidChannelType means that the remote requested a channel type that we don't support | ||
ErrInvalidChannelType = errors.New("invalid Channel Type") | ||
|
||
// ErrInvalidMessageType is returned when a DataChannel Message has a type we don't support | ||
ErrInvalidMessageType = errors.New("invalid Message Type") | ||
|
||
// ErrExpectedAndActualLengthMismatch is when the declared length and actual length don't match | ||
ErrExpectedAndActualLengthMismatch = errors.New("expected and actual length do not match") | ||
|
||
// ErrUnexpectedDataChannelType is when a message type does not match the expected type | ||
ErrUnexpectedDataChannelType = errors.New("expected and actual message type does not match") | ||
) |
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