Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2026 Changes in this version + var ErrEmptyTopicName = platformerrors.New("empty topic name") + type Consumer interface + Consume func(ctx context.Context, stopChan chan bool, errors chan error) + type ConsumerFunc func(context.Context, []byte) error + type ConsumerProvider interface + ProvideConsumer func(ctx context.Context, topic string, handlerFunc ConsumerFunc) (Consumer, error) + type Publisher interface + Publish func(ctx context.Context, data any) error + PublishAsync func(ctx context.Context, data any) + Stop func() + type PublisherProvider interface + Close func() + Ping func(ctx context.Context) error + ProvidePublisher func(ctx context.Context, topic string) (Publisher, error) Other modules containing this package github.com/primandproper/platform-go/v2