server

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	EnabledListeners  []string
	Host              string
	Port              int
	ListenLimit       int
	TLSHost           string
	TLSPort           int
	TLSListenLimit    int
	TLSCertificate    string
	TLSCertificateKey string
	TLSCACertificate  string
	SocketPath        string
	Name              string
	KeepAlive         time.Duration
	ReadTimeout       time.Duration
	WriteTimeout      time.Duration
	TLSKeepAlive      time.Duration
	TLSReadTimeout    time.Duration
	TLSWriteTimeout   time.Duration
	CleanupTimeout    time.Duration
	MaxHeaderSize     uint64
	Handler           http.Handler
	// contains filtered or unexported fields
}

Server for the multikube API

func NewServer

func NewServer() *Server

NewServer returns a default non-tls server

func NewServerTLS

func NewServerTLS() *Server

NewServerTLS returns a default TLS enabled server

func (*Server) Listen

func (s *Server) Listen() error

Listen configures server listeners

func (*Server) Serve

func (s *Server) Serve() error

Serve the api

Jump to

Keyboard shortcuts

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