httpserver

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Licensed to Elasticsearch B.V. under one or more agreements. Elasticsearch B.V. licenses this file to you under the Apache 2.0 License. See the LICENSE file in the project root for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	*output.Options
	TLSCertificate      string        // TLS certificate file path.
	TLSKey              string        // TLS key file path.
	ReadTimeout         time.Duration // HTTP Server read timeout.
	WriteTimeout        time.Duration // HTTP Server write timeout.
	ConfigPath          string        // Config path.
	DelayParticipation  float32       // Delay participation rate (fraction of requests that will be delayed. 0.0 <= p <= 1.0).
	DelayDuration       time.Duration // Delay duration.
	FaultParticipation  float32       // Fault participation rate (fraction of requests that will fail. 0.0 <= p <= 1.0).
	FaultErrorCode      int           // Fault HTTP error code.
	ExitOnUnmatchedRule bool          // If true it will exit if a request does not match any rule.
}

type Server

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

func New

func New(opts *Options, logger *zap.SugaredLogger) (*Server, error)

func (*Server) Close

func (o *Server) Close() error

func (*Server) Start

func (o *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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