Documentation
¶
Overview ¶
Package webhookserver provides a local webhook receiver server implementation.
Index ¶
- type Server
- func (s *Server) Events() <-chan *ports.WebhookEvent
- func (s *Server) GetLocalURL() string
- func (s *Server) GetPublicURL() string
- func (s *Server) GetStats() ports.WebhookServerStats
- func (s *Server) OnEvent(handler ports.WebhookEventHandler)
- func (s *Server) SetTunnel(tunnel ports.Tunnel)
- func (s *Server) Start(ctx context.Context) error
- func (s *Server) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the WebhookServer interface.
func NewServer ¶
func NewServer(config ports.WebhookServerConfig) *Server
NewServer creates a new webhook server.
func (*Server) Events ¶
func (s *Server) Events() <-chan *ports.WebhookEvent
Events returns a channel for receiving webhook events.
func (*Server) GetLocalURL ¶
GetLocalURL returns the local server URL.
func (*Server) GetPublicURL ¶
GetPublicURL returns the public URL (from tunnel, if any).
func (*Server) GetStats ¶
func (s *Server) GetStats() ports.WebhookServerStats
GetStats returns server statistics.
func (*Server) OnEvent ¶
func (s *Server) OnEvent(handler ports.WebhookEventHandler)
OnEvent registers a handler for webhook events.
Click to show internal directories.
Click to hide internal directories.