server

package
v0.0.0-...-bf9fd61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequests

func LogRequests(next http.Handler) http.Handler

Types

type Config

type Config struct {
	Ports                 common.PortList
	BindIPPortsMap        map[int]struct{}
	BindLocalhostPortsMap map[int]struct{}
	Metrics               int
	TLSCert               string
	TLSKey                string
	Version               string
	UDSServer             string
	Cluster               string
	Dialer                common.Dialer
	IstioVersion          string
	Namespace             string
	DisableALPN           bool
}

Config for an echo server Instance.

func (Config) String

func (c Config) String() string

type Instance

type Instance struct {
	Config
	// contains filtered or unexported fields
}

Instance of the Echo server.

func New

func New(config Config) *Instance

New creates a new server instance.

func (*Instance) Close

func (s *Instance) Close() (err error)

Close implements the application.Application interface

func (*Instance) Start

func (s *Instance) Start() (err error)

Start the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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