pgrok

package
v0.0.0-...-09899ef Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 14 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, shutdownFn func(*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