crusader 24f7b3d3d6 ing
2017-08-25 11:33:00 +09:00

18 lines
276 B
Go

package protocol
import (
"encoding/json"
)
type ServerRequest struct {
Method string `json:"method"`
Params *json.RawMessage `json:"params"`
Id *json.RawMessage `json:"id"`
}
func (r *ServerRequest) reset() {
r.Method = ""
r.Params = nil
r.Id = nil
}