Documentation
¶
Overview ¶
Package slackclient posts bounded text messages to Slack incoming webhooks. It deliberately owns neither webhook configuration nor secret resolution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeliveryError ¶
func NewDeliveryError(kind DeliveryErrorKind, code string, cause error) error
Types ¶
type DeliveryError ¶
type DeliveryError struct {
Kind DeliveryErrorKind
Code string
// contains filtered or unexported fields
}
func (*DeliveryError) Error ¶
func (e *DeliveryError) Error() string
func (*DeliveryError) Unwrap ¶
func (e *DeliveryError) Unwrap() error
type DeliveryErrorKind ¶
type DeliveryErrorKind string
const ( DeliveryTemporary DeliveryErrorKind = "temporary" DeliveryPermanent DeliveryErrorKind = "permanent" DeliveryAmbiguous DeliveryErrorKind = "ambiguous" )
type HTTPClientFactory ¶
HTTPClientFactory is injectable for deterministic transport tests. The default creates a safehttp client using the policy supplied for each hook.
type Options ¶
type Options struct {
Now func() time.Time
HTTPClientFactory HTTPClientFactory
}