server

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package server owns HTTP/gRPC serving, service registration, and listener lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// Listen defaults to net.Listen. Embedders can supply already-bound listeners.
	Listen           func(network, address string) (net.Listener, error)
	RPCAddress       string
	HTTPPort         string
	BasicAuth        []*config.BasicCredential
	OidcAuth         *config.OidcAuth
	TaskAccess       string
	Tasks            tesrpc.TaskServiceServer
	Events           events.EventServiceServer
	Nodes            scheduler.SchedulerServiceServer
	DisableHTTPCache bool
	MaxResponseBytes int
	Log              *logger.Logger
	Plugins          *config.Plugins
}

Server represents a Funnel server. The server handles RPC traffic via gRPC, HTTP traffic for the TES API, and also serves the web dashboard.

func (*Server) Serve

func (s *Server) Serve(pctx context.Context) error

Serve starts the server and blocks until its context is canceled or a listener stops.

Directories

Path Synopsis
Package gateway contains the HTTP gateway's marshaling and response helpers.
Package gateway contains the HTTP gateway's marshaling and response helpers.
Package middleware provides HTTP and gRPC middleware for the server.
Package middleware provides HTTP and gRPC middleware for the server.
Package taskservice implements TES task operations over readers, events, and compute backends.
Package taskservice implements TES task operations over readers, events, and compute backends.

Jump to

Keyboard shortcuts

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