api

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router represents the routes for the http server.

func New

func New(
	signalCtx context.Context,
	cfg *config.Config,
	scmProvider core.SCMProvider,
	loginProvider core.GitLoginProvider,
	tokenHandler core.GitTokenHandler,
	githubApp core.GithubApp,
	internalJWT core.Session,
	session core.Session,
	dbStores *core.DBStores,
	services *core.Services,
	vaultStore core.Vault,
	azureClient core.AzureBlob,
	redisDB core.RedisDB,
	buildMonitor core.BuildMonitor,
	hookParser core.HookParser,
	testSplitter core.TestSplitter,
	taskQueueManager core.TaskQueueManager,
	taskUpdateManager core.TaskUpdateManager,
	buildAbortQueueProducer core.BuildAbortProducer,
	coverageManager core.CoverageManager,
	synapseManager core.SynapseClientManager,
	synapsePoolManager core.SynapsePoolManager,
	runner core.K8sRunner,
	emailNotificationManager core.EmailNotificationManager,
	logger lumber.Logger) Router

New returns a New Router

func (*Router) Handler

func (r *Router) Handler() *gin.Engine

Handler function will perform all route operations

Jump to

Keyboard shortcuts

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