...
Package webhook
import "github.com/matrix-org/go-neb/services/jira/webhook"
- Overview
- Index
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
func OnReceiveRequest(req *http.Request) (string, *Event, *errors.HTTPError)
OnReceiveRequest is called when JIRA hits NEB with an update.
Returns the project key and webhook event, or an error.
func RegisterHook(jrealm *jira.Realm, projects []string, userID, webhookEndpointURL string) error
RegisterHook checks to see if this user is allowed to track the given projects and then tracks them.
type Event struct {
WebhookEvent string `json:"webhookEvent"`
Timestamp int64 `json:"timestamp"`
User gojira.User `json:"user"`
Issue gojira.Issue `json:"issue"`
}
Event represents an incoming JIRA webhook event