repohook

package
v0.0.0-...-081ecb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Code generated by genservices. DO NOT EDIT.

Code generated by genservices. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(svc Service, r *mux.Router, regCtx *endpointutil.HandlerRegContext)

Types

type BasicService

type BasicService struct {
	ProviderFactory       providers.Factory
	AnalysisLauncherQueue *repoanalyzes.LauncherProducer
	PullAnalyzeQueue      *pullanalyzesqueue.Producer
	ActiveSubPolicy       *policy.ActiveSubscription
	Cfg                   config.Config
}

func (BasicService) HandleGithubWebhook

func (s BasicService) HandleGithubWebhook(rc *request.AnonymousContext, req *GithubWebhook, body request.Body) error

type GithubWebhook

type GithubWebhook struct {
	request.ShortRepo

	HookID       string `request:",urlPart,"`
	EventType    string `request:"X-GitHub-Event,header,"`
	DeliveryGUID string `request:"X-GitHub-Delivery,header,"`
}

func (GithubWebhook) FillLogContext

func (w GithubWebhook) FillLogContext(lctx logutil.Context)

type HandleGithubWebhookRequest

type HandleGithubWebhookRequest struct {
	ReqRepo *GithubWebhook
	Body    request.Body
}

type HandleGithubWebhookResponse

type HandleGithubWebhookResponse struct {
	// contains filtered or unexported fields
}

type Service

type Service interface {
	//url:/v1/repos/{owner}/{name}/hooks/{hookid} method:POST
	HandleGithubWebhook(rc *request.AnonymousContext, reqRepo *GithubWebhook, body request.Body) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL