rpc

package
v0.0.0-...-aba326a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rpc implements a gRPC server for the q queue service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

An Option represents an optional argument to a new server.

func WithQueueFactory

func WithQueueFactory(f q.Factory) Option

WithQueueFactory specifies a bespoke queue factory to be used to create a server's new queues.

type Server

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

A Server serves gRPC requests.

func NewServer

func NewServer(l net.Listener, m q.Manager, o ...Option) *Server

NewServer returns a new gRPC server.

func (*Server) Serve

func (s *Server) Serve() error

Serve gRPC requests forever.

Jump to

Keyboard shortcuts

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