server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package server Prunner REST API

A REST API for scheduling pipelines and managing jobs in prunner, an embedded task runner.

Schemes: http
Host: localhost:8080
BasePath: /
Version: 0.0.1
License: MIT http://opensource.org/licenses/MIT

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevelopmentLogFormatter

func DevelopmentLogFormatter(logger log.Interface) *middleware.DefaultLogFormatter

DevelopmentLogFormatter is a colored and compact middleware.LogFormatter for development use

func GetLogEntry

func GetLogEntry(r *http.Request) log.Interface

func LogEntrySetField

func LogEntrySetField(r *http.Request, key string, value interface{})

func LogEntrySetFields

func LogEntrySetFields(r *http.Request, fields map[string]interface{})

func NewServer

func NewServer(pRunner *prunner.PipelineRunner, outputStore taskctl.OutputStore, logger func(http.Handler) http.Handler, tokenAuth *jwtauth.JWTAuth, enableProfiling bool) *server

func StructuredLogFormatter

func StructuredLogFormatter(logger log.Interface) middleware.LogFormatter

StructuredLogFormatter is a middleware.LogFormatter with structured fields for production use

Types

This section is empty.

Jump to

Keyboard shortcuts

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