Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSetOption ¶
type ClientSetOption func(*ClientSetOptions)
func WithLogger ¶
func WithLogger(lg *slog.Logger) ClientSetOption
func WithStorageTimeout ¶
func WithStorageTimeout(timeout time.Duration) ClientSetOption
type ClientSetOptions ¶
func (*ClientSetOptions) Apply ¶
func (s *ClientSetOptions) Apply(opts ...ClientSetOption)
type RequestOption ¶
type RequestOption func(*RequestOptions)
func WithUnredacted ¶
func WithUnredacted() RequestOption
type RequestOptions ¶
type RequestOptions struct {
Unredacted bool
}
func (*RequestOptions) Apply ¶
func (o *RequestOptions) Apply(opts ...RequestOption)
type SyncOption ¶
type SyncOption func(*SyncOptions)
func WithDefaultReceiver ¶ added in v0.11.0
func WithDefaultReceiver(cfg *config.WebhookConfig) SyncOption
func WithInitialRouter ¶
func WithInitialRouter(router routing.OpniRouting) SyncOption
func WithSyncTimeout ¶
func WithSyncTimeout(timeout time.Duration) SyncOption
type SyncOptions ¶
type SyncOptions struct { Router routing.OpniRouting DefaultReceiver *config.WebhookConfig Timeout time.Duration }
func NewSyncOptions ¶
func NewSyncOptions() *SyncOptions
func (*SyncOptions) Apply ¶
func (o *SyncOptions) Apply(opts ...SyncOption)
Click to show internal directories.
Click to hide internal directories.