Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ActorIRIKey is the metadata key for the actor IRI.
ActorIRIKey = "actor-iri"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriber ¶
Subscriber implements a subscriber for Watermill that handles HTTP requests.
func New ¶
func New(cfg *Config, sigVerifier signatureVerifier, tm authTokenManager) *Subscriber
New returns a new HTTP subscriber.
func (*Subscriber) Handler ¶
func (s *Subscriber) Handler() common.HTTPRequestHandler
Handler returns the handler that should be invoked when an HTTP request is posted to the target endpoint. This handler must be registered with an HTTP server.
func (*Subscriber) Method ¶
func (s *Subscriber) Method() string
Method returns the HTTP method, which is always POST.
func (*Subscriber) Path ¶
func (s *Subscriber) Path() string
Path returns the base path of the target endpoint for this subscriber.
Click to show internal directories.
Click to hide internal directories.