drpcmanager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

README

package drpcmanager

import "storj.io/drpc/drpcmanager"

package drpcmanager reads packets from a transport to make streams.

Usage

type Manager
type Manager struct {
}
func New
func New(tr drpc.Transport, srv Server) *Manager
func (*Manager) Close
func (m *Manager) Close() (err error)
func (*Manager) DoneSig
func (m *Manager) DoneSig() *drpcsignal.Signal
func (*Manager) NewStream
func (m *Manager) NewStream(ctx context.Context, sid uint64) (*drpcstream.Stream, error)
type Server
type Server interface {
	HandleRPC(stream *drpcstream.Stream, rpc string) error
}

Documentation

Overview

package drpcmanager reads packets from a transport to make streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(tr drpc.Transport, srv Server) *Manager

func (*Manager) Close

func (m *Manager) Close() (err error)

func (*Manager) DoneSig

func (m *Manager) DoneSig() *drpcsignal.Signal

func (*Manager) NewStream

func (m *Manager) NewStream(ctx context.Context, sid uint64) (*drpcstream.Stream, error)

type Server

type Server interface {
	HandleRPC(stream *drpcstream.Stream, rpc string) error
}

Jump to

Keyboard shortcuts

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