Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtoGRPC = "grpc" ProtoHTTP2 = "h2" )
Variables ¶
This section is empty.
Functions ¶
func MutualTLS ¶ added in v1.20.7
MutualTLS creates client and server TLS config for mutual authentication
func NewClientTLS ¶ added in v1.34.0
NewClientTLS creates client-side TLS config for mutual authentication
Types ¶
type Config ¶
type Transport ¶
type Transport struct { Protocol string `json:"protocol"` Address string `json:"address"` CertFile string `json:"cert_file,omitempty"` CertPEM []string `json:"cert_pem,omitempty"` KeyFile string `json:"key_file,omitempty"` KeyPEM []string `json:"key_pem,omitempty"` CAFile string `json:"ca_file,omitempty"` CAPEM []string `json:"ca_pem,omitempty"` // not required when using mutual TLS Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
Click to show internal directories.
Click to hide internal directories.