HttpRpcStarter

package
v0.0.0-...-0a08b80 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcContainerConfig

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

RPC 容器配置

type RpcContainerStarter

type RpcContainerStarter struct {
	Config       *RpcContainerConfig `autowire:""`
	Container    SpringRpc.RpcContainer
	SSLContainer SpringRpc.RpcContainer
}

RPC 容器启动器

func (*RpcContainerStarter) OnStartApplication

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

func (*RpcContainerStarter) OnStopApplication

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

Jump to

Keyboard shortcuts

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