entrypoint

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCPEntryPoint = "tcp"
	UDPEntryPoint = "udp"
)

Variables

View Source
var (
	ErrEntryPointClosed = errors.New("entrypoint closed")
)

Functions

func Add

func Add(s EntryPoint)

func Count

func Count() int

func Delete

func Delete(id string)

func LoadConfig

func LoadConfig()

func SaveConfig

func SaveConfig() error

func Set

func Set(s EntryPoint)

Types

type EntryPoint

type EntryPoint = tunnel.Tunnel

func Get

func Get(id string) EntryPoint

func GetIndex

func GetIndex(index int) EntryPoint

func NewTCPEntryPoint

func NewTCPEntryPoint(opts ...tunnel.Option) EntryPoint

func NewUDPEntryPoint

func NewUDPEntryPoint(opts ...tunnel.Option) EntryPoint

Jump to

Keyboard shortcuts

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