server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: LGPL-2.1 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigTLS added in v0.2.0

func ConfigTLS(caCrt, srvCrt, srvKey string) (*tls.Config, error)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(handler message.HandlerFunc) *Server

func NewTLS added in v0.2.0

func NewTLS(handler message.HandlerFunc, cfg *tls.Config) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(address string) error

Jump to

Keyboard shortcuts

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