Lines Matching refs:Method
58 Method string `json:"method"`
161 if v.ID != nil && v.Method != "" && v.Params != nil {
162 fmt.Fprintf(&buf, "Received request '%s - (%s)'.\n", v.Method, id)
164 maps.setServer(id, req{method: v.Method, start: tm})
165 } else if v.ID != nil && v.Method == "" && v.Params == nil {
175 } else if v.ID == nil && v.Method != "" && v.Params != nil {
180 fmt.Fprintf(&buf, "Received notification '%s'.\n", v.Method)
185 tmfmt, v.ID != nil, v.Method, v.Params != nil,
206 // ID Method Params => Sending request
207 // ID !Method Result(might be null, but !Params) => Sending response (could we get an Error?)
208 // !ID Method Params => Sending notification
217 if v.ID != nil && v.Method != "" && (v.Params != nil || v.Method == "shutdown") {
218 fmt.Fprintf(&buf, "Sending request '%s - (%s)'.\n", v.Method, id)
224 maps.setClient(id, req{method: v.Method, start: tm})
225 } else if v.ID != nil && v.Method == "" && v.Params == nil {
235 } else if v.ID == nil && v.Method != "" {
240 fmt.Fprintf(&buf, "Sending notification '%s'.\n", v.Method)
245 tmfmt, v.ID != nil, v.Method, v.Params != nil,