client

package
v0.0.0-...-b2619af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Tunnels []*Tunnel
}

Client is the pgrok tunnel client

func Factory

func Factory() (*Client, error)

Factory is the pgrok tunnel client factory

func (*Client) AddTunnel

func (c *Client) AddTunnel(t *Tunnel)

AddTunnel adds a new tunnel to the pgrok client

func (*Client) Close

func (c *Client) Close()

Close disconnects all tunnels

func (*Client) Closed

func (c *Client) Closed() bool

Closed returns true if all client tunnels have been disconnected

func (*Client) ConnectAll

func (c *Client) ConnectAll() error

ConnectAll connects all tunnels

func (*Client) TunnelFactory

func (c *Client) TunnelFactory(name, localAddr string, serverAddr, protocol, jwt *string) (*Tunnel, error)

TunnelFactory initializes a new pgrok client Tunnel

type Tunnel

type Tunnel struct {
	Name       *string
	Protocol   *string
	LocalAddr  *string
	RemoteAddr *string
	ServerAddr *string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL