server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(flip *tableflip.Upgrader, config *conf.Bootstrap, plugins []pluginv1.Plugin) transport.Server

func RequestsCounter added in v1.2.0

func RequestsCounter() *pkgmetrics.RequestsCounter

RequestsCounter returns the shared requests counter for external packages.

func SetRequestsCounter added in v1.2.0

func SetRequestsCounter(rc *pkgmetrics.RequestsCounter)

SetRequestsCounter sets the shared requests counter. Must be called before the server starts serving requests (typically from main.init).

Types

type HTTPServer

type HTTPServer struct {
	*http.Server
	// contains filtered or unexported fields
}

func (*HTTPServer) Start

func (s *HTTPServer) Start(ctx context.Context) error

func (*HTTPServer) Stop

func (s *HTTPServer) Stop(ctx context.Context) error

Directories

Path Synopsis
multirange
countingWriter counts how many bytes have been written to it.
countingWriter counts how many bytes have been written to it.

Jump to

Keyboard shortcuts

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