MCPcopy
hub / github.com/mattermost/mattermost / apiRPCClient

Struct apiRPCClient

server/public/plugin/client_rpc.go:121–124  ·  view source on GitHub ↗

apiRPCClient is the client-side RPC proxy that runs in the plugin process and connects to the [apiRPCServer] on the Mattermost server side. It implements the API interface and allows plugins to call Mattermost server APIs (e.g., GetUser, CreatePost) by forwarding requests via RPC to apiRPCServer. T

Source from the content-addressed store, hash-verified

119//
120// This is created during plugin activation and injected into the plugin via SetAPI().
121type apiRPCClient struct {
122 client *rpc.Client
123 muxBroker *plugin.MuxBroker
124}
125
126// apiRPCServer is the server-side RPC handler that runs in the Mattermost server process and receives requests from [apiRPCClient].
127// It receives API calls from plugins (via apiRPCClient) and delegates them to the actual

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected