Move the logic for the legacy version into the http handlers and use a shim when doing ipc.
15 linhas
196 B
Go
15 linhas
196 B
Go
package messages
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
type Arg struct {
|
|
Body []byte
|
|
RemoteAddr string
|
|
}
|
|
|
|
var (
|
|
ErrBadRequest = errors.New("bad request")
|
|
ErrInternal = errors.New("internal error")
|
|
)
|