http

package
v1.299.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func NewSender

func NewSender(hook *hooks.Webhook, opts ...SenderOption) (client.Client, error)

NewSender for HTTP.

Types

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

Receiver for HTTP.

func NewReceiver added in v1.173.0

func NewReceiver(mux *http.ServeMux, hook *hooks.Webhook) *Receiver

NewReceiver for HTTP.

func (*Receiver) Register added in v1.173.0

func (r *Receiver) Register(ctx context.Context, path string, fn ReceiverFunc) error

Register a fn under path.

type ReceiverFunc added in v1.173.0

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

ReceiverFunc for HTTP.

type SenderOption added in v1.138.0

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

SenderOption 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