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 ¶
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 (*HTTPServer) ConnectLinks ¶ added in v1.15.1
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.
Click to show internal directories.
Click to hide internal directories.