serverold

package
v0.0.0-...-55c0a6c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpFrontend

type HttpFrontend struct {
	Mux    *http.ServeMux
	Srv    *graceful.Server
	Portal *Portal
	Key    *rsa.PrivateKey
	Ln     net.Listener
	Logger *log.Logger
	auth.ConsumerInterface
	// contains filtered or unexported fields
}

func NewHttpFrontend

func NewHttpFrontend(cfg *HttpFrontendConfiguration) (*HttpFrontend, error)

func (*HttpFrontend) AddHandler

func (h *HttpFrontend) AddHandler(path string, hndlFunc http.HandlerFunc) error

func (*HttpFrontend) ConnectAuthBackend

func (hf *HttpFrontend) ConnectAuthBackend(ab *auth.AuthBackend)

type HttpFrontendConfiguration

type HttpFrontendConfiguration struct {
	Port                 int
	Host                 string
	PublicStaticFilesDir string
	UploadDir            string
	SecStaticFilesDir    string
}

type Portal

type Portal struct {
	StorageWaiter sync.WaitGroup

	S                *config.PortalConfig
	StorageOnline    bool
	PkiOnline        bool
	StaticHttpOnline bool
	HttpsOnline      bool
	// contains filtered or unexported fields
}

func NewPortal

func NewPortal() *Portal

func (*Portal) Close

func (p *Portal) Close()

func (*Portal) Connect

func (p *Portal) Connect() (*data.StorageConnection, error)

func (*Portal) LoadCertStore

func (p *Portal) LoadCertStore(cfgStr string) error

func (*Portal) LoadStorage

func (p *Portal) LoadStorage(cfg *data.InitialConfiguration) error

func (*Portal) ServeAuthBackend

func (p *Portal) ServeAuthBackend() error

func (*Portal) ServeHttp

func (p *Portal) ServeHttp(cfg *HttpFrontendConfiguration) error

func (*Portal) ServePki

func (p *Portal) ServePki(cfg *pki.PKIConfiguration) error

func (*Portal) ServeStorage

func (p *Portal) ServeStorage() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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