server

package
v0.0.0-...-d46a54d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *echo.Echo

New instantiates new Echo server

func Start

func Start(e *echo.Echo, cfg *Config) error

Start starts echo server and block until server is shutdown

func ToTLSConfig

func ToTLSConfig(caCert []byte, certBytes []byte, keyBytes []byte, keyPassword string) (*tls.Config, error)

ToTLSConfig creates TLS config

Types

type Config

type Config struct {
	Address             string
	ReadTimeoutSeconds  int
	WriteTimeoutSeconds int
	Debug               bool
	DebugPath           string
	TLS                 TLSConf
}

Config represents server specific config

type TLSConf

type TLSConf struct {
	CAFile              string
	CertFile            string
	KeyFile             string
	KeyPassword         string
	ForceClientCertAuth bool
}

TLSConf is server TLS configuration

Jump to

Keyboard shortcuts

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