Documentation
¶
Index ¶
- type Option
- type Publisher
- func (s *Publisher) Close() error
- func (s Publisher) Name() string
- func (s *Publisher) Publish(ctx context.Context, request *apis.PublishRequest) (*apis.PublishResponse, error)
- func (s *Publisher) PublishAsync(_ context.Context, request *apis.PublishRequest, ...) error
- func (s *Publisher) Serve() error
- func (s *Publisher) Shutdown(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithBootstrapServers ¶
func WithConfigMap ¶
func WithDefaultTopic ¶
func WithGracePeriod ¶
func WithTopicMappings ¶
func WithTopicMappings(topicMappings config.TopicMappings) Option
func WithWorkers ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (*Publisher) Publish ¶
func (s *Publisher) Publish(ctx context.Context, request *apis.PublishRequest) (*apis.PublishResponse, error)
func (*Publisher) PublishAsync ¶
func (s *Publisher) PublishAsync(_ context.Context, request *apis.PublishRequest, callback apis.PublishCallbackFunc) error
Click to show internal directories.
Click to hide internal directories.