snowflake/common/messages/ipc.go
Arlo Breault c3c84fdb48 Use variables for string matching
The legacy code does case matching on these exact strings so it's better
to ensure they're constant.
2021-07-08 12:47:23 -04:00

18 lines
304 B
Go

package messages
import (
"errors"
)
type Arg struct {
Body []byte
RemoteAddr string
}
var (
ErrBadRequest = errors.New("bad request")
ErrInternal = errors.New("internal error")
StrTimedOut = "timed out waiting for answer!"
StrNoProxies = "no snowflake proxies currently available"
)