http

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package http provides an HTTP transport for protoflow.

Index

Constants

View Source
const TransportName = "http"

TransportName is the name used to register this transport.

Variables

View Source
var PublisherFactory = func(config http.PublisherConfig, logger watermill.LoggerAdapter) (message.Publisher, error) {
	return http.NewPublisher(config, logger)
}

PublisherFactory allows overriding the publisher creation for testing.

View Source
var SubscriberFactory = func(addr string, config http.SubscriberConfig, logger watermill.LoggerAdapter) (message.Subscriber, error) {
	return http.NewSubscriber(addr, config, logger)
}

SubscriberFactory allows overriding the subscriber creation for testing.

Functions

func Build

Build creates a new HTTP transport.

func Capabilities

func Capabilities() transport.Capabilities

Capabilities returns the capabilities of this transport.

func Register added in v0.5.0

func Register()

Register registers the HTTP transport with the default registry. This should be called from an init() function in an importing package, or explicitly before using the transport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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