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, MIT Imports: 19 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 to the fgateway

func NewClient

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

NewClient creates 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, chain []string, options [][]string, input io.Reader, output io.Writer) error

Run nearly implements the runnable interface, except that it supports specifying chains of functions instead of a single function

type Server

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

Server represents a gRPC based function dispatcher

func NewServer

func NewServer(addr string, defaultPort uint16, opts ...grpc.ServerOption) *Server

NewServer creates a gRPC based function dispatcher

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts listening for connections

func (*Server) Run

func (s *Server) Run(stream btrfaasgrpc.FunctionRunner_RunServer) (err error)

Run implements the gRPC interface

Jump to

Keyboard shortcuts

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