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 ¶
- func GetManagerStatsCB(opts *Manager) func(string) *drpcstats.Stats
- func GetStreamFin(opts *Stream) chan<- struct{}
- func GetStreamKind(opts *Stream) string
- func GetStreamStats(opts *Stream) *drpcstats.Stats
- func GetStreamTransport(opts *Stream) drpc.Transport
- func SetManagerStatsCB(opts *Manager, statsCB func(string) *drpcstats.Stats)
- func SetStreamFin(opts *Stream, fin chan<- struct{})
- func SetStreamKind(opts *Stream, kind string)
- func SetStreamStats(opts *Stream, stats *drpcstats.Stats)
- func SetStreamTransport(opts *Stream, tr drpc.Transport)
- type Manager
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetManagerStatsCB ¶ added in v0.0.34
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
GetStreamKind returns the kind debug string stored in the options.
func GetStreamStats ¶ added in v0.0.34
GetStreamStats returns the Stats stored in the options.
func GetStreamTransport ¶
GetStreamTransport returns the drpc.Transport stored in the options.
func SetManagerStatsCB ¶ added in v0.0.34
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
SetStreamKind sets the kind debug string stored in the options.
func SetStreamStats ¶ added in v0.0.34
SetStreamStats sets the Stats stored in the options.
func SetStreamTransport ¶
SetStreamTransport sets the drpc.Transport stored in the options.