Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudfoundry/go-diodes
/ types & classes
Types & classes
13 in github.com/cloudfoundry/go-diodes
⨍
Functions
38
◇
Types & classes
13
↓ 2 callers
FuncType
AlertFunc
AlertFunc type is an adapter to allow the use of ordinary functions as Alert handlers.
one_to_one.go:19
↓ 2 callers
FuncType
PollerConfigOption
PollerConfigOption can be used to setup the poller.
poller.go:22
↓ 1 callers
FuncType
WaiterConfigOption
WaiterConfigOption can be used to setup the waiter.
waiter.go:16
Interface
Alerter
Alerter is used to report how many values were overwritten since the last write.
one_to_one.go:13
Interface
Diode
Diode is any implementation of a diode.
poller.go:9
TypeAlias
GenericDataType
GenericDataType is the data type the diodes operate on.
one_to_one.go:9
Struct
ManyToOne
ManyToOne diode is optimal for many writers (go-routines B-n) and a single reader (go-routine A). It is not thread safe for multiple readers.
many_to_one.go:11
Struct
OneToOne
OneToOne diode is meant to be used by a single reader and a single writer. It is not thread safe if used otherwise.
one_to_one.go:33
Struct
Poller
Poller will poll a diode until a value is available.
poller.go:15
Struct
Waiter
Waiter will use a channel signal to alert the reader to when data is available.
waiter.go:9
Struct
bucket
one_to_one.go:26
Struct
spyAlerter
one_to_one_test.go:160
Struct
spyDiode
poller_test.go:57