server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server implements a build server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

APIServer defines a k6build API server

func NewAPIServer

func NewAPIServer(config APIServerConfig) *APIServer

NewAPIServer creates a new build service API server TODO: add logger

func (*APIServer) ServeHTTP

func (a *APIServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the request handler for the build API server

type APIServerConfig

type APIServerConfig struct {
	BuildService k6build.BuildService
	Log          *slog.Logger
}

APIServerConfig defines the configuration for the APIServer

Jump to

Keyboard shortcuts

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