package rpc

import "encoding/json"

// Handler processes incoming JSON-RPC requests and notifications.
// method: the JSON-RPC method name
// params: the raw JSON params
// isRequest: true if this is a request (has ID), false if notification
// Returns the response result (for requests) or nil (for notifications).
type Handler func(method string, params json.RawMessage, isRequest bool) (interface{}, error)
