drpcopts

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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 GetStreamFin
func GetStreamFin(opts *Stream) chan<- struct{}

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

func GetStreamKind
func GetStreamKind(opts *Stream) string

GetStreamKind returns the kind debug string stored in the options.

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

GetStreamTransport returns the drpc.Transport stored in the options.

func SetStreamFin
func SetStreamFin(opts *Stream, fin chan<- struct{})

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

func SetStreamKind
func SetStreamKind(opts *Stream, kind string)

SetStreamKind sets the kind debug string 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 GetStreamFin added in v0.0.33

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

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

func GetStreamKind added in v0.0.31

func GetStreamKind(opts *Stream) string

GetStreamKind returns the kind debug string stored in the options.

func GetStreamTransport

func GetStreamTransport(opts *Stream) drpc.Transport

GetStreamTransport returns the drpc.Transport stored in the options.

func SetStreamFin added in v0.0.33

func SetStreamFin(opts *Stream, fin chan<- struct{})

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

func SetStreamKind added in v0.0.31

func SetStreamKind(opts *Stream, kind string)

SetStreamKind sets the kind debug string 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