mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
The legacy code does case matching on these exact strings so it's better to ensure they're constant.
18 lines
304 B
Go
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"
|
|
)
|