mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Introduces an IPC struct and moves the logic out of the http handlers and into methods on that.
18 lines
309 B
Go
18 lines
309 B
Go
package messages
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
type Arg struct {
|
|
Body []byte
|
|
RemoteAddr string
|
|
NatType string
|
|
}
|
|
|
|
var (
|
|
ErrBadRequest = errors.New("bad request")
|
|
ErrInternal = errors.New("internal error")
|
|
ErrUnavailable = errors.New("service unavailable")
|
|
ErrTimeout = errors.New("timeout")
|
|
)
|