drpcopts

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 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 GetManagerStatsCB
func GetManagerStatsCB(opts *Manager) func(string) *drpcstats.Stats

GetManagerStatsCB returns the stats callback stored in the options.

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 GetStreamStats
func GetStreamStats(opts *Stream) *drpcstats.Stats

GetStreamStats returns the Stats stored in the options.

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

GetStreamTransport returns the drpc.Transport stored in the options.

func SetManagerStatsCB
func SetManagerStatsCB(opts *Manager, statsCB func(string) *drpcstats.Stats)

SetManagerStatsCB sets the stats callback 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 SetStreamStats
func SetStreamStats(opts *Stream, stats *drpcstats.Stats)

SetStreamStats sets the Stats stored in the options.

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

SetStreamTransport sets the drpc.Transport stored in the options.

type Manager
type Manager struct {
}

Manager contains internal options for the drpcmanager package.

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 GetManagerStatsCB added in v0.0.34

func GetManagerStatsCB(opts *Manager) func(string) *drpcstats.Stats

GetManagerStatsCB returns the stats callback stored in the options.

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 GetStreamStats added in v0.0.34

func GetStreamStats(opts *Stream) *drpcstats.Stats

GetStreamStats returns the Stats stored in the options.

func GetStreamTransport

func GetStreamTransport(opts *Stream) drpc.Transport

GetStreamTransport returns the drpc.Transport stored in the options.

func SetManagerStatsCB added in v0.0.34

func SetManagerStatsCB(opts *Manager, statsCB func(string) *drpcstats.Stats)

SetManagerStatsCB sets the stats callback 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 SetStreamStats added in v0.0.34

func SetStreamStats(opts *Stream, stats *drpcstats.Stats)

SetStreamStats sets the Stats stored in the options.

func SetStreamTransport

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

SetStreamTransport sets the drpc.Transport stored in the options.

Types

type Manager added in v0.0.34

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

Manager contains internal options for the drpcmanager package.

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