api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

type ApiServer struct {
	Engine *gin.Engine
	// contains filtered or unexported fields
}

func New

func New(giteaHandler GiteaWebhookHandlerInterface, sonarQubeHandler SonarQubeWebhookHandlerInferface) *ApiServer

type GiteaWebhookHandler

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

func (*GiteaWebhookHandler) HandleComment

func (h *GiteaWebhookHandler) HandleComment(r *http.Request) (int, string)

func (*GiteaWebhookHandler) HandleSynchronize

func (h *GiteaWebhookHandler) HandleSynchronize(r *http.Request) (int, string)

type GiteaWebhookHandlerInterface added in v0.3.1

type GiteaWebhookHandlerInterface interface {
	HandleSynchronize(r *http.Request) (int, string)
	HandleComment(r *http.Request) (int, string)
}

type SonarQubeWebhookHandler

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

func (*SonarQubeWebhookHandler) Handle

func (h *SonarQubeWebhookHandler) Handle(r *http.Request) (int, string)

type SonarQubeWebhookHandlerInferface

type SonarQubeWebhookHandlerInferface interface {
	Handle(r *http.Request) (int, string)
}

Jump to

Keyboard shortcuts

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