Move Errors to separate init block

This commit is contained in:
Milos Gajdos 2019-09-05 17:44:47 +01:00
parent b01c8e06e0
commit ec354934e3
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -27,6 +27,9 @@ var (
ControlChannel = "control" ControlChannel = "control"
// DefaultLink is default network link // DefaultLink is default network link
DefaultLink = "network" DefaultLink = "network"
)
var (
// ErrMsgUnknown is returned when unknown message is attempted to send or receive // ErrMsgUnknown is returned when unknown message is attempted to send or receive
ErrMsgUnknown = errors.New("unknown message") ErrMsgUnknown = errors.New("unknown message")
// ErrClientNotFound is returned when client for tunnel channel could not be found // ErrClientNotFound is returned when client for tunnel channel could not be found