Documentation
¶
Overview ¶
Package webhooktest provides deterministic clocks, nonces, identifiers, signers, and verifiers for consumer tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConfig = errors.New("webhooktest: invalid fixture configuration")
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
Clock is a concurrency-safe manually controlled clock.
type Fixture ¶
type Fixture struct {
Clock *Clock
Signer *webhook.Signer
Verifier *webhook.Verifier
// contains filtered or unexported fields
}
Fixture owns a shared clock, signer, verifier, and deterministic ID source.
func NewFixture ¶
func NewFixture(config FixtureConfig) (*Fixture, error)
NewFixture constructs a deterministic pair without global state.
func (*Fixture) IDGenerator ¶
IDGenerator returns the next deterministic identifier and matches the DeliveryConfig IDGenerator signature.
Click to show internal directories.
Click to hide internal directories.