respchan

package
v0.0.0-...-f9581dc Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 (*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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL