MCPcopy
hub / github.com/mattermost/mattermost / apiRPCServer

Struct apiRPCServer

server/public/plugin/client_rpc.go:132–135  ·  view source on GitHub ↗

apiRPCServer is the server-side RPC handler that runs in the Mattermost server process and receives requests from [apiRPCClient]. It receives API calls from plugins (via apiRPCClient) and delegates them to the actual Mattermost API implementation. This enables plugins to interact with Mattermost fu

Source from the content-addressed store, hash-verified

130// This enables plugins to interact with Mattermost functionality like users, posts,
131// channels, and configuration through a well-defined API boundary.
132type apiRPCServer struct {
133 impl API
134 muxBroker *plugin.MuxBroker
135}
136
137// ErrorString is a fallback for sending unregistered implementations of the error interface across
138// rpc. For example, the errorString type from the github.com/pkg/errors package cannot be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected