server

package
v0.0.0-...-3b31870 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	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
	DisableALPN  bool
	Ports        []*common.Port
}

Config for an echo server Instance.

func (Config) String

func (c Config) String() string

type Instance

type Instance struct {
	Config

	Ports []*common.Port
	// 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