WebStarter

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebContainerConfig

type WebContainerConfig struct {
	EnableHTTP  bool   `value:"${web.server.enable:=true}"`      // 是否启用 HTTP
	Port        int32  `value:"${web.server.port:=8080}"`        // HTTP 端口
	EnableHTTPS bool   `value:"${web.server.ssl.enable:=false}"` // 是否启用 HTTPS
	SSLPort     int32  `value:"${web.server.ssl.port:=8443}"`    // SSL 端口
	SSLCert     string `value:"${web.server.ssl.cert:=}"`        // SSL 证书
	SSLKey      string `value:"${web.server.ssl.key:=}"`         // SSL 秘钥
}

Web 容器配置

type WebContainerStarter

type WebContainerStarter struct {
	Config       *WebContainerConfig    `autowire:""`
	Container    SpringWeb.WebContainer `autowire:"WebContainer"`
	SSLContainer SpringWeb.WebContainer `autowire:"WebSSLContainer"`
}

Web 容器启动器

func (*WebContainerStarter) OnStartApplication

func (starter *WebContainerStarter) OnStartApplication(ctx SpringBoot.ApplicationContext)

func (*WebContainerStarter) OnStopApplication

func (starter *WebContainerStarter) OnStopApplication(ctx SpringBoot.ApplicationContext)

Jump to

Keyboard shortcuts

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