webhooks

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout = 3 * time.Second
	MaxSize = 10 << 20 // 10 MiB.
)
View Source
const (
	DefaultWebhookPort = 14480
)

Variables

This section is empty.

Functions

func Flags

func Flags(configFilePath altsrc.StringSourcer) []cli.Flag

Flags defines CLI flags to configure an HTTP server. These flags are usually set using environment variables or the application's configuration file.

Types

type HTTPServer added in v1.15.1

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

func NewHTTPServer

func NewHTTPServer(ctx context.Context, cmd *cli.Command) *HTTPServer
func (s *HTTPServer) ConnectLinks(ctx context.Context) error

ConnectLinks initializes stateful connections for all the configured Thrippy links that are not stateless webhooks.

func (*HTTPServer) Run added in v1.15.1

func (s *HTTPServer) Run(ctx context.Context)

Run starts an HTTP server to expose webhooks, and blocks forever.

Jump to

Keyboard shortcuts

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