StarterGF

package
v0.0.0-...-37ace14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GFServerStarter

type GFServerStarter struct {
	Server *ghttp.Server `autowire:""`
	// contains filtered or unexported fields
}

GFServerStarter

func (*GFServerStarter) OnStartApplication

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

func (*GFServerStarter) OnStopApplication

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

type WebServerConfig

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

WebServerConfig Web 服务器配置

Jump to

Keyboard shortcuts

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