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 |
|---|---|
|
Package edge_apis_2 edge_apis_2 provides a wrapper around the generated Edge Client and Management APIs improve ease of use.
|
Package edge_apis_2 edge_apis_2 provides a wrapper around the generated Edge Client and Management APIs improve ease of use. |
|
example
module
|
|
|
grpc-example/grpc-client
module
|
|
|
grpc-example/grpc-server
module
|
|
|
exercises
|
|
|
http/client/before
command
|
|
|
http/client/zitified
command
|
|
|
http/server/before
command
|
|
|
http/server/zitified
command
|
|
|
Package ziti provides methods for loading Contexts which interact with an OpenZiti Controller via the Edge Client API to bind (host) services or dial (connect) to services.
|
Package ziti provides methods for loading Contexts which interact with an OpenZiti Controller via the Edge Client API to bind (host) services or dial (connect) to services. |
Click to show internal directories.
Click to hide internal directories.