routes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBrowser

func IsBrowser(req *http.Request, checkAccepts bool) bool

IsBrowser --

Types

type ArtifactFile

type ArtifactFile struct {
	ID         int64  `json:"id"`
	Name       string `json:"name"`
	Size       int64  `json:"size"`
	ArtifactID int64  `json:"artifact_id"`
}

ArtifactFile --

type LintInput

type LintInput struct {
	Data string `json:"data"`
}

LintInput --

type Routes

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

Routes --

func NewRoutes

func NewRoutes(
	ctx context.Context,
	db *gorm.DB,
	r *mux.Router,
	log *logrus.Entry,
	storage *store.Uploader,
	notifyPipelines chan *models.Pipeline,
	notifyBuilds chan *models.Pipeline,
	controllerPipelines *controllers.Pipelines,
	controllerBuilds *controllers.Builds,
) *Routes

NewRoutes returns a Routes instance --

Jump to

Keyboard shortcuts

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