move ErrorCode type to errorcodes package

This commit is contained in:
Lucas Clemente
2016-05-17 00:25:51 +02:00
parent fec9786939
commit 69e302812d
5 changed files with 21 additions and 15 deletions

View File

@@ -1,12 +1,15 @@
// Package errorcodes defines the error codes in QUIC.
//
package errorcodes
import "github.com/lucas-clemente/quic-go/protocol"
// An ErrorCode in QUIC
type ErrorCode uint32
// The error codes defined by QUIC
const (
InternalError protocol.ErrorCode = 1
InvalidFrameData protocol.ErrorCode = 4
DecryptionFailure protocol.ErrorCode = 12
PeerGoingAway protocol.ErrorCode = 16
NetworkIdleTimeout protocol.ErrorCode = 25
InternalError ErrorCode = 1
InvalidFrameData ErrorCode = 4
DecryptionFailure ErrorCode = 12
PeerGoingAway ErrorCode = 16
NetworkIdleTimeout ErrorCode = 25
)