util

package
v0.0.0-...-cc107d4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfig

func GetTLSConfig(certPemPath, certKeyPath string) *tls.Config

用于获取TLS配置

func GrpcAndGrpcgatewayAdapterHandlerFunc

func GrpcAndGrpcgatewayAdapterHandlerFunc(grpcServer *grpc.Server, otherHandler http.Handler) http.Handler

GrpcHandlerFunc函数用于判断请求是来源于Rpc客户端 或者 Restful Api请求 根据不同的请求注册不同的ServeHTTP服务

func NewTLSListener

func NewTLSListener(inner net.Listener, config *tls.Config) net.Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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