Documentation ¶
Index ¶
- type HttpFrontend
- type HttpFrontendConfiguration
- type Portal
- func (p *Portal) Close()
- func (p *Portal) Connect() (*data.StorageConnection, error)
- func (p *Portal) LoadCertStore(cfgStr string) error
- func (p *Portal) LoadStorage(cfg *data.InitialConfiguration) error
- func (p *Portal) ServeAuthBackend() error
- func (p *Portal) ServeHttp(cfg *HttpFrontendConfiguration) error
- func (p *Portal) ServeHttps(cfg *config.PortalHttpsConfiguration) (*config.PortalHttpsConfiguration, error)
- func (p *Portal) ServePki(cfg *pki.PKIConfiguration) error
- func (p *Portal) ServeStorage() error
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 Portal ¶
type Portal struct { StorageWaiter sync.WaitGroup S *config.PortalConfig StorageOnline bool PkiOnline bool StaticHttpOnline bool HttpsOnline bool // contains filtered or unexported fields }
func (*Portal) LoadCertStore ¶
func (*Portal) LoadStorage ¶
func (p *Portal) LoadStorage(cfg *data.InitialConfiguration) error
func (*Portal) ServeAuthBackend ¶
func (*Portal) ServeHttp ¶
func (p *Portal) ServeHttp(cfg *HttpFrontendConfiguration) error
func (*Portal) ServeHttps ¶
func (p *Portal) ServeHttps(cfg *config.PortalHttpsConfiguration) (*config.PortalHttpsConfiguration, error)
func (*Portal) ServeStorage ¶
Click to show internal directories.
Click to hide internal directories.