drpcserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 11 Imported by: 35

README

package drpcserver

import "storj.io/drpc/drpcserver"

package drpcserver allows one to execute registered rpcs.

Usage

type Server
type Server struct {
}
func New
func New() *Server
func (*Server) HandleRPC
func (s *Server) HandleRPC(stream *drpcstream.Stream, rpc string) error
func (*Server) Register
func (s *Server) Register(srv interface{}, desc drpc.Description)
func (*Server) Serve
func (s *Server) Serve(ctx context.Context, lis net.Listener) error
func (*Server) ServeOne
func (s *Server) ServeOne(ctx context.Context, tr drpc.Transport) (err error)

Documentation

Overview

package drpcserver allows one to execute registered rpcs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New() *Server

func (*Server) HandleRPC

func (s *Server) HandleRPC(stream *drpcstream.Stream, rpc string) error

func (*Server) Register

func (s *Server) Register(srv interface{}, desc drpc.Description)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, lis net.Listener) error

func (*Server) ServeOne

func (s *Server) ServeOne(ctx context.Context, tr drpc.Transport) (err error)

Jump to

Keyboard shortcuts

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