http

package
v1.145.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSender

func NewSender(opts ...SenderOption) (client.Client, error)

NewSender for HTTP.

func RegisterReceiver

func RegisterReceiver(ctx context.Context, mux *runtime.ServeMux, path string, recv Receiver, opts ...ReceiverOption) error

RegisterReceiver for HTTP.

Types

type Config

type Config client.Config

Config for HTTP.

type Receiver

type Receiver func(ctx context.Context, e events.Event)

Receiver for HTTP.

type ReceiverOption added in v1.138.0

type ReceiverOption interface {
	// contains filtered or unexported methods
}

ReceiverOption for HTTP.

func WithReceiverHook added in v1.138.0

func WithReceiverHook(hook *hooks.Webhook) ReceiverOption

WithReceiverHook for HTTP.

type SenderOption added in v1.138.0

type SenderOption interface {
	// contains filtered or unexported methods
}

SenderOption for HTTP.

func WithSenderHook added in v1.138.0

func WithSenderHook(hook *hooks.Webhook) SenderOption

WithSenderHook for HTTP.

func WithSenderRoundTripper added in v1.138.0

func WithSenderRoundTripper(rt http.RoundTripper) SenderOption

WithSenderRoundTripper for HTTP.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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