handler

package
v4.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	pb.UnimplementedBrokerServer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(b broker.Broker) *Handler

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) Publish

func (h *Handler) Publish(stream pb.Broker_PublishServer) error

Publish receives events from remote client and forwards them to the internal broker.

func (*Handler) Subscribe

func (h *Handler) Subscribe(stream pb.Broker_SubscribeServer) error

Subscribe forwards subscriptions from remote clients

Jump to

Keyboard shortcuts

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