@@ -21,14 +21,14 @@ For a full example, see the [internal/example](internal/example) directory. This
2121 package that contains an example Protobuf service ` EchoService ` .
2222- [ gen/pluginrpc/example/v1] ( internal/example/gen/pluginrpc/example/v1 ) : The generated code
2323 from ` protoc-gen-go ` and ` protoc-gen-pluginrpc-go ` for the example Protobuf Package.
24- - [ example -plugin] ( internal/example/cmd/example -plugin ) : An implementation of a
24+ - [ echo -plugin] ( internal/example/cmd/echo -plugin ) : An implementation of a
2525 PluginRPC plugin for ` EchoService ` .
26- - [ example-client- echo-request] ( internal/example/cmd/example-client- echo-request ) : A
27- simple client that calls the ` EchoRequest ` RPC via invoking ` example -plugin` .
28- - [ example-client- echo-list] ( internal/example/cmd/example-client- echo-request ) : A simple
29- client that calls the ` EchoList ` RPC via invoking ` example -plugin` .
30- - [ example-client- echo-error] ( internal/example/cmd/example-client- echo-error ) : A simple
31- client that calls the ` EchoError ` RPC via invoking ` example -plugin` .
26+ - [ echo-request-client ] ( internal/example/cmd/echo-request-client ) : A
27+ simple client that calls the ` EchoRequest ` RPC via invoking ` echo -plugin` .
28+ - [ echo-list-client ] ( internal/example/cmd/echo-request-client ) : A simple
29+ client that calls the ` EchoList ` RPC via invoking ` echo -plugin` .
30+ - [ echo-error-client ] ( internal/example/cmd/echo-error-client ) : A simple
31+ client that calls the ` EchoError ` RPC via invoking ` echo -plugin` .
3232
3333## Usage
3434
@@ -64,7 +64,7 @@ plugins:
6464 opt : paths=source_relative
6565` ` `
6666
67- Build your plugin. See [example -plugin](internal/example/cmd/example -plugin) for
67+ Build your plugin. See [echo -plugin](internal/example/cmd/echo -plugin) for
6868a full example. Assuming you intend to expose the ` EchoService` as a plugin, your code will look
6969something like this :
7070
@@ -79,9 +79,9 @@ func newServer() (pluginrpc.Server, error) {
7979 //
8080 // This means that the following commands will invoke their respective procedures:
8181 //
82- // example -plugin echo request
83- // example -plugin /pluginrpc.example.v1.EchoService/EchoList
84- // example -plugin echo error
82+ // echo -plugin echo request
83+ // echo -plugin /pluginrpc.example.v1.EchoService/EchoList
84+ // echo -plugin echo error
8585 EchoRequest: []pluginrpc.ProcedureOption{pluginrpc.ProcedureWithArgs("echo", "request")},
8686 EchoError: []pluginrpc.ProcedureOption{pluginrpc.ProcedureWithArgs("echo", "error")},
8787 }.Build()
@@ -110,11 +110,11 @@ func (echoServiceHandler) EchoError(_ context.Context, request *examplev1.EchoEr
110110` ` `
111111
112112Invoke your plugin. You'll create a client that points to your plugin. See
113- [example-client- echo-request](internal/example/cmd/example-client- echo-request) for a full
113+ [echo-request-client ](internal/example/cmd/echo-request-client ) for a full
114114example. Invocation will look something like this :
115115
116116` ` ` go
117- client := pluginrpc.NewClient(pluginrpc.NewExecRunner("example -plugin"))
117+ client := pluginrpc.NewClient(pluginrpc.NewExecRunner("echo -plugin"))
118118echoServiceClient, err := examplev1pluginrpc.NewEchoServiceClient(client)
119119if err != nil {
120120 return err
0 commit comments