webhook

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidWebhookURL = errors.New("invalid webhook url")
)

Functions

This section is empty.

Types

type Consumer

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

func NewConsumer

func NewConsumer(nc *nats.Conn, opts ...ConsumerOpt) *Consumer

func (*Consumer) Start

func (c *Consumer) Start(ctx context.Context) error

type ConsumerOpt

type ConsumerOpt func(c *Consumer)

func WithHTTPClient

func WithHTTPClient(client *http.Client) ConsumerOpt

Jump to

Keyboard shortcuts

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