Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
NewHttpClient returns a http.Client that can be used exactly as any other http.Client but will route requests over a Ziti network using the host name as the Ziti service name. Supplying a tlsConfig is possible to connect to HTTPS services, but for it to be successful, the Ziti service name MUST be in the servers URI SANs.
Types ¶
type ZitiTransport ¶
type ZitiTransport struct { http.Transport Context ziti.Context TlsConfig *tls.Config // contains filtered or unexported fields }
ZitiTransport wraps the default http.RoundTripper implementation with Ziti edge.Conn pooling
func NewZitiTransport ¶
func NewZitiTransport(ctx ziti.Context, clientTlsConfig *tls.Config) *ZitiTransport
NewZitiTransport returns a new http.Transport that routes HTTP requests and response over a Ziti network.
func (*ZitiTransport) DialContext ¶
func (*ZitiTransport) DialTLSContext ¶
Directories ¶
Path | Synopsis |
---|---|
example
module
|
|
grpc-example/grpc-client
Module
|
|
grpc-example/grpc-server
Module
|
|
exercises
|
|
Package ziti provides methods for loading ziti contexts from identity JSON files Identity files specifies in `ZITI_IDENTITIES` environment variable (semicolon separates) are loaded automatically at startup
|
Package ziti provides methods for loading ziti contexts from identity JSON files Identity files specifies in `ZITI_IDENTITIES` environment variable (semicolon separates) are loaded automatically at startup |
Click to show internal directories.
Click to hide internal directories.