Documentation ¶
Overview ¶
Package inprocess implements an in-process signaling backend using Go channels
Index ¶
- func NewBackend(cfg *signaling.BackendConfig, logger *log.Logger) (signaling.Backend, error)
- type Backend
- func (b *Backend) Close() error
- func (b *Backend) Publish(_ context.Context, kp *crypto.KeyPair, msg *signaling.Message) error
- func (b *Backend) Subscribe(_ context.Context, kp *crypto.KeyPair, h signaling.MessageHandler) (bool, error)
- func (b *Backend) Type() signalingproto.BackendType
- func (b *Backend) Unsubscribe(_ context.Context, kp *crypto.KeyPair, h signaling.MessageHandler) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackend ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.