shttp

package
v0.0.0-...-ca3ac9b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DoSHTTP naming constant for dependency injection
	DoSHTTP = "shttp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SHttp

type SHttp struct {
	Started bool
	// contains filtered or unexported fields
}

SHttp a service encapsulating http and https server

func NewSHttp

func NewSHttp(cfn config.HTTP, cfgCa config.CAService) (*SHttp, error)

NewSHttp creates a new shttp service

func (*SHttp) GetTLSConfig

func (s *SHttp) GetTLSConfig() (*tls.Config, error)

GetTLSConfig generates the tls config, getting certificate from ca service

func (*SHttp) ShutdownServers

func (s *SHttp) ShutdownServers()

ShutdownServers shutting all servers down

func (*SHttp) StartServers

func (s *SHttp) StartServers(router, healthRouter *chi.Mux)

StartServers starting all needed http servers

Jump to

Keyboard shortcuts

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