httpserver

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 18 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.
	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