Documentation ¶
Index ¶
- Constants
- func AppDataToMap(appData []byte) (map[string]interface{}, error)
- func DialAndRun(provider FabricProvider, service Service, identity string, clientConn net.Conn, ...)
- func GetAppInfo(protocol, dstHostname, dstIp, dstPort, sourceAddr string) map[string]string
- func GetIpAndPort(addr net.Addr) (string, string)
- func Run(zitiConn net.Conn, clientConn net.Conn, halfClose bool)
- type FabricProvider
- type HostControl
- type HostingContext
- type Service
Constants ¶
View Source
const ( DestinationProtocolKey = "dst_protocol" DestinationHostname = "dst_hostname" DestinationIpKey = "dst_ip" DestinationPortKey = "dst_port" SourceAddrKey = "source_addr" SourceIpKey = "src_ip" SourcePortKey = "src_port" )
Variables ¶
This section is empty.
Functions ¶
func AppDataToMap ¶ added in v0.19.43
func DialAndRun ¶ added in v0.16.20
func GetAppInfo ¶ added in v0.19.63
Types ¶
type FabricProvider ¶ added in v0.19.10
type FabricProvider interface { PrepForUse(serviceId string) GetCurrentIdentity() (*edge.CurrentIdentity, error) TunnelService(service Service, identity string, conn net.Conn, halfClose bool, appInfo []byte) error HostService(hostCtx HostingContext) (HostControl, error) }
func NewContextProvider ¶ added in v0.19.10
func NewContextProvider(context ziti.Context) FabricProvider
type HostControl ¶ added in v0.19.10
type HostingContext ¶ added in v0.19.10
type HostingContext interface { ServiceName() string ListenOptions() *ziti.ListenOptions Dial(options map[string]interface{}) (net.Conn, bool, error) GetHealthChecks() []health.CheckDefinition GetInitialHealthState() (ziti.Precedence, uint16) OnClose() SetCloseCallback(func()) }
Click to show internal directories.
Click to hide internal directories.