webhook

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageProcessingTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledger

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

func NewAcknowledger

func NewAcknowledger(writer http.ResponseWriter) *Acknowledger

func (*Acknowledger) Ack

func (a *Acknowledger) Ack() error

func (*Acknowledger) Done

func (a *Acknowledger) Done() <-chan any

func (*Acknowledger) Nack

func (a *Acknowledger) Nack(opts messages.NackOpts) error

type Opt added in v0.0.7

type Opt func(server *Server)

func WithLogger added in v0.0.7

func WithLogger(logger *slog.Logger) Opt

type Server

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

func NewServer

func NewServer(port int, opts ...Opt) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Consume

func (s *Server) Consume() (<-chan messages.Message, error)

Jump to

Keyboard shortcuts

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