server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	Server     *http.Server
	UseTls     bool
	PublicKey  string
	PrivateKey string
}

func NewHttpServer

func NewHttpServer(address string, port int, handler http.Handler) *HttpServer

func NewTlsHttpServer

func NewTlsHttpServer(address string, port int, pubKey string, privKey string, handler http.Handler) *HttpServer

func (*HttpServer) RunServer

func (s *HttpServer) RunServer(ctx context.Context)

Jump to

Keyboard shortcuts

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