Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpCallbackChannel ¶
func NewHttpCallbackChannel ¶
func NewHttpCallbackChannel(router *mux.Router, callbackBaseURL string) *HttpCallbackChannel
func (*HttpCallbackChannel) HandleResponse ¶
func (l *HttpCallbackChannel) HandleResponse(w http.ResponseWriter, r *http.Request)
HandleResponse handles the response from the node.
func (*HttpCallbackChannel) OnResponse ¶
func (p *HttpCallbackChannel) OnResponse(reqID uint64, payload string) error
func (*HttpCallbackChannel) SendRequest ¶
func (p *HttpCallbackChannel) SendRequest(c context.Context, url string, message WebhookMessage, rw http.ResponseWriter) (string, error)
type PendingRequest ¶
type PendingRequest struct {
// contains filtered or unexported fields
}
type WebhookChannel ¶
type WebhookChannel interface {
SendRequest(context context.Context, url string, message WebhookMessage, rw http.ResponseWriter) (string, error)
}
type WebhookMessage ¶
Click to show internal directories.
Click to hide internal directories.