tailscale

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT

SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Hostname string
	AuthKey  string
	// contains filtered or unexported fields
}

Client struct implements proxyprovider for tailscale

func New

func New(log zerolog.Logger, name string, provider *config.TailscaleServerConfig) (*Client, error)

func (*Client) NewProxy

func (c *Client) NewProxy(config *proxyconfig.Config) (proxyproviders.Proxy, error)

NewProxy method implements proxyprovider NewProxy method

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy struct implements proxyconfig.Proxy.

func (*Proxy) Close

func (p *Proxy) Close() error

Close method implements proxyconfig.Proxy Close method.

func (*Proxy) GetListener

func (p *Proxy) GetListener(network, addr string) (net.Listener, error)

GetListener method implements proxyconfig.Proxy GetListener method.

func (*Proxy) GetTLSListener

func (p *Proxy) GetTLSListener(network, addr string) (net.Listener, error)

GetTLSListener method implements proxyconfig.Proxy GetTLSListener method.

func (*Proxy) Start

func (p *Proxy) Start() error

Start method implements proxyconfig.Proxy Start method.

Jump to

Keyboard shortcuts

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