runnerapi

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SvcName = "runner"
)

Variables

This section is empty.

Functions

func ServeRunner

func ServeRunner(server nproto.RPCServer, svcName string, svc Runner) error

ServeRunner serves Runner service using a RPC server.

Types

type Runner

type Runner interface {
	// Sleep sleeps a while and returns.
	Sleep(ctx context.Context, input *duration.Duration) (output *empty.Empty, err error)
}

@@nprpc@@

func InvokeRunner

func InvokeRunner(client nproto.RPCClient, svcName string) Runner

InvokeRunner invokes Runner service using a RPC client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL