Documentation ¶
Index ¶
- Constants
- func AppDataToMap(appData []byte) (map[string]interface{}, error)
- func DialAndRun(service Service, instanceId 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 ¶
func DialAndRun ¶
func GetAppInfo ¶
Types ¶
type FabricProvider ¶
type FabricProvider interface { PrepForUse(serviceId string) GetCurrentIdentity() (*rest_model.IdentityDetail, error) GetCurrentIdentityWithBackoff() (*rest_model.IdentityDetail, error) TunnelService(service Service, identity string, conn net.Conn, halfClose bool, appInfo []byte) error HostService(hostCtx HostingContext) (HostControl, error) }
func NewContextProvider ¶
func NewContextProvider(context ziti.Context) FabricProvider
type HostControl ¶
type HostingContext ¶
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.