drpcmanager

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 10 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) *Manager
func (*Manager) Close
func (m *Manager) Close() error
func (*Manager) NewClientStream
func (m *Manager) NewClientStream(ctx context.Context) (stream *drpcstream.Stream, err error)
func (*Manager) NewServerStream
func (m *Manager) NewServerStream(ctx context.Context) (stream *drpcstream.Stream, rpc string, err 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) *Manager

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) NewClientStream added in v0.0.5

func (m *Manager) NewClientStream(ctx context.Context) (stream *drpcstream.Stream, err error)

func (*Manager) NewServerStream added in v0.0.5

func (m *Manager) NewServerStream(ctx context.Context) (stream *drpcstream.Stream, rpc string, err error)

Jump to

Keyboard shortcuts

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