Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider( logger *zap.Logger, httpClient connect_go.HTTPClient, options ...ProviderOption, ) webhookv1alpha1apiclient.Provider
NewProvider returns a new Provider.
Types ¶
type ProviderOption ¶
type ProviderOption func(*provider)
ProviderOption is an option for a new Provider.
func WithAddressMapper ¶
func WithAddressMapper(addressMapper func(string) string) ProviderOption
WithAddressMapper maps the address with the given function.
func WithAuthInterceptorProvider ¶
func WithAuthInterceptorProvider(authInterceptorProvider func(string) connect_go.UnaryInterceptorFunc) ProviderOption
WithAuthInterceptorProvider configures a provider that, when invoked, returns an interceptor that can be added to a client for setting the auth token
func WithInterceptors ¶
func WithInterceptors(interceptors []connect_go.Interceptor) ProviderOption
WithInterceptors adds the slice of interceptors to all clients returned from this provider.
Click to show internal directories.
Click to hide internal directories.