tunclient

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCount

type DataCount struct {
	FromServer int64
	FromTun    int64
}

type Service

type Service struct {
	ID      string
	Address string
	Port    int
}

type Services

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

func NewServices

func NewServices(ctx context.Context, schedulerAPI api.Scheduler, nodeID string) *Services

func (*Services) Get

func (s *Services) Get(serviceID string) *Service

func (*Services) Regiseter

func (s *Services) Regiseter(service *Service)

func (*Services) Remove

func (s *Services) Remove(service *Service)

type Tunclient

type Tunclient struct {
	ID string
	// contains filtered or unexported fields
}

func NewTunclient

func NewTunclient(req *types.CreateTunnelReq, service *Service, onClose func(id string)) (*Tunclient, error)

func (*Tunclient) StartService

func (tc *Tunclient) StartService() error

Jump to

Keyboard shortcuts

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