grpc

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a gRPC client for the function runner interface implementing Runnable

func NewClient

func NewClient(target string, opts ...grpc.DialOption) (*Client, error)

NewClient returns a new client instance

func NewClientWithContext added in v0.3.1

func NewClientWithContext(ctx context.Context, target string, opts ...grpc.DialOption) (*Client, error)

NewClientWithContext returns a new client instance

func (*Client) Close added in v0.2.2

func (c *Client) Close() error

Close closes the client connection

func (*Client) Run

func (c *Client) Run(ctx context.Context, options []string, input io.Reader, output io.Writer) error

Run implements the Runnable interface

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a gRPC server which serves function calls to a specific runnable

func NewServer

func NewServer(cmd runnable.Runnable, cfg *config.Config, opts ...grpc.ServerOption) *Server

NewServer returns a new server instance

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe start listening for requests

func (*Server) Run

Run implements the server interface implied by the btrfaas protobuf service definition

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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