mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 18:19:53 +00:00
25b09713b9
Embrace the future and use Go 1.6's vendor support via Godep. Go 1.5 users should `export GO15VENDOREXPERIMENT=1`
26 lines
331 B
Go
26 lines
331 B
Go
package frame
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
const (
|
|
NoError = iota
|
|
ProtocolError
|
|
InternalError
|
|
FlowControlError
|
|
StreamClosed
|
|
FrameSizeError
|
|
RefusedStream
|
|
Cancel
|
|
NoSuchError
|
|
)
|
|
|
|
type FramingError struct {
|
|
error
|
|
}
|
|
|
|
func protoError(fmtstr string, args ...interface{}) FramingError {
|
|
return FramingError{fmt.Errorf(fmtstr, args...)}
|
|
}
|