# 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.