Lines Matching refs:Method
58 Method string `json:"method"` member
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,
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,