Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + type GitHubEventServer struct + func New(o Options, hmacTokenGenerator func() []byte, logger *logrus.Entry) *GitHubEventServer + func (g *GitHubEventServer) GracefulShutdown() + func (g *GitHubEventServer) ListenAndServe() error + func (g *GitHubEventServer) RegisterCustomFuncHandle(endpoint string, fn func(w http.ResponseWriter, r *http.Request)) + func (g *GitHubEventServer) RegisterExternalPlugins(p map[string][]plugins.ExternalPlugin) + func (g *GitHubEventServer) RegisterHandleIssueCommentEvent(fn IssueCommentEventHandler) + func (g *GitHubEventServer) RegisterHandlePullRequestEvent(fn PullRequestHandler) + func (g *GitHubEventServer) RegisterHelpProvider(helpProvider func([]config.OrgRepo) (*pluginhelp.PluginHelp, error), ...) + func (g *GitHubEventServer) RegisterIssueEventHandler(fn IssueEventHandler) + func (g *GitHubEventServer) RegisterPluginHelpAgentHandle(endpoint string, helpAgent *pluginhelp_hook.HelpAgent) + func (g *GitHubEventServer) RegisterPushEventHandler(fn PushEventHandler) + func (g *GitHubEventServer) RegisterReviewCommentEventHandler(fn ReviewCommentEventHandler) + func (g *GitHubEventServer) RegisterReviewEventHandler(fn ReviewEventHandler) + func (g *GitHubEventServer) RegisterStatusEventHandler(fn StatusEventHandler) + func (g *GitHubEventServer) RegisterWorkflowRunEventHandler(fn WorkflowRunEventHandler) + func (g *GitHubEventServer) Shutdown(ctx context.Context) error + type IssueCommentEventHandler func(*logrus.Entry, github.IssueCommentEvent) + type IssueEventHandler func(*logrus.Entry, github.IssueEvent) + type Metrics struct + PluginHandleDuration *prometheus.HistogramVec + PluginHandleErrors *prometheus.CounterVec + ResponseCounter *prometheus.CounterVec + WebhookCounter *prometheus.CounterVec + func NewMetrics() *Metrics + type Options struct + Metrics *Metrics + func (o *Options) Bind(fs *flag.FlagSet) + func (o *Options) DefaultAndValidate() error + type PluginMetrics struct + ConfigMapGauges *prometheus.GaugeVec + type PullRequestHandler func(*logrus.Entry, github.PullRequestEvent) + type PushEventHandler func(*logrus.Entry, github.PushEvent) + type ReviewCommentEventHandler func(*logrus.Entry, github.ReviewCommentEvent) + type ReviewEventHandler func(*logrus.Entry, github.ReviewEvent) + type StatusEventHandler func(*logrus.Entry, github.StatusEvent) + type WorkflowRunEventHandler func(*logrus.Entry, github.WorkflowRunEvent)