Documentation
¶
Overview ¶
Package dialer provides a grpc dialer that can be used to create grpc client connections with different levels of ATLS encryption / verification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
Dialer can open grpc client connections with different levels of ATLS encryption / verification.
func NewWithKey ¶
func NewWithKey(issuer atls.Issuer, validator atls.Validator, netDialer NetDialer, privKey *ecdsa.PrivateKey) *Dialer
NewWithKey creates a new Dialer with the given private key.
func (*Dialer) Dial ¶
Dial creates a new grpc client connection to the given target using the atls validator.
func (*Dialer) DialInsecure ¶
DialInsecure creates a new grpc client connection to the given target without using encryption or verification. Only use this method when using another kind of encryption / verification (VPN, etc).
func (*Dialer) DialNoVerify ¶
DialNoVerify creates a new grpc client connection to the given target without verifying the server's attestation.