relay

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, store *identity.Store, signer *headers.Signer, deliverer *webhook.PersistentDeliverer, usage usage.UsageTracker, hub *ws.Hub) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) SetEnforcer added in v0.3.0

func (s *Server) SetEnforcer(e limits.Enforcer)

SetEnforcer wires in the resource-limits enforcer used to reject inbound recipients whose owner has hit the message-flow or storage cap. When nil (the default) every RCPT TO is accepted as far as the limits subsystem is concerned — handy for tests and for self-host operators who run without limits enabled. The cmd/e2a runtime always sets it.

func (*Server) SetOutbox added in v0.3.0

func (s *Server) SetOutbox(o webhookpub.Outbox)

SetOutbox wires the slice-1 transactional outbox. When set AND its FeatureFlag is enabled, the inbound trigger commits the messages row and the webhook_events outbox row in a single transaction (per design §4.2). The legacy SetPublisher path is preserved for backward compat during the slice 3 → slice 11 rollout window.

func (*Server) SetPublisher added in v0.3.0

func (s *Server) SetPublisher(p webhookpub.Publisher)

SetPublisher wires the legacy webhooks-as-a-resource publisher. Same optional-setter pattern as SetEnforcer — keeps NewServer's signature unchanged for the existing call sites and tests that don't care about the new path.

Jump to

Keyboard shortcuts

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