Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIDInUse = errors.New("id already in use")
Functions ¶
This section is empty.
Types ¶
type ResponseChannel ¶
type ResponseChannel[T rpc.RPCResponse | model.Notification] struct { // contains filtered or unexported fields }
func New ¶
func New[T rpc.RPCResponse | model.Notification]() *ResponseChannel[T]
func (*ResponseChannel[T]) CreateResponseChannel ¶
func (respChan *ResponseChannel[T]) CreateResponseChannel(id string) (chan T, error)
func (*ResponseChannel[T]) GetResponseChannel ¶
func (ws *ResponseChannel[T]) GetResponseChannel(id string) (chan T, bool)
func (*ResponseChannel[T]) RemoveResponseChannel ¶
func (ws *ResponseChannel[T]) RemoveResponseChannel(id string)
Click to show internal directories.
Click to hide internal directories.