Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMethodNotFound = errors.New("mcp: method not found")
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(gateway *RPCGateway, roleScoper appmcp.RoleScoper) *Handler
type InvalidParamsError ¶
type InvalidParamsError struct {
Reason string
}
func (*InvalidParamsError) Error ¶
func (e *InvalidParamsError) Error() string
type RPCGateway ¶
type RPCGateway struct {
// contains filtered or unexported fields
}
func NewRPCGateway ¶
func NewRPCGateway(composer appmcp.Composer) *RPCGateway
func (*RPCGateway) Dispatch ¶
func (g *RPCGateway) Dispatch(ctx context.Context, rc *appconsumer.RoutableConsumer, method string, params json.RawMessage) (any, error)
Click to show internal directories.
Click to hide internal directories.