drpcopts

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 1 Imported by: 0

README

package drpcopts

import "storj.io/drpc/internal/drpcopts"

Package drpcopts contains internal options.

This package allows options to exist that are too sharp to provide to typical users of the library that are not required to be backward compatible.

Usage

func GetStreamTerm
func GetStreamTerm(opts *Stream) chan<- struct{}

GetStreamTerm returns the chan<- struct{} stored in the options.

func GetStreamTransport
func GetStreamTransport(opts *Stream) drpc.Transport

GetStreamTransport returns the drpc.Transport stored in the options.

func SetStreamTerm
func SetStreamTerm(opts *Stream, term chan<- struct{})

SetStreamTerm sets the chan<- struct{} stored in the options.

func SetStreamTransport
func SetStreamTransport(opts *Stream, tr drpc.Transport)

SetStreamTransport sets the drpc.Transport stored in the options.

type Stream
type Stream struct {
}

Stream contains internal options for the drpcstream package.

Documentation

Overview

Package drpcopts contains internal options.

This package allows options to exist that are too sharp to provide to typical users of the library that are not required to be backward compatible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStreamTerm

func GetStreamTerm(opts *Stream) chan<- struct{}

GetStreamTerm returns the chan<- struct{} stored in the options.

func GetStreamTransport

func GetStreamTransport(opts *Stream) drpc.Transport

GetStreamTransport returns the drpc.Transport stored in the options.

func SetStreamTerm

func SetStreamTerm(opts *Stream, term chan<- struct{})

SetStreamTerm sets the chan<- struct{} stored in the options.

func SetStreamTransport

func SetStreamTransport(opts *Stream, tr drpc.Transport)

SetStreamTransport sets the drpc.Transport stored in the options.

Types

type Stream

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

Stream contains internal options for the drpcstream package.

Jump to

Keyboard shortcuts

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