edge

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	fx.In

	*common.CommonAPI
	*device.Device
	*asset.Asset
	*validate.Validation
	*datasync.DataSync
	*workerd.Workerd
	Transport    *quic.Transport
	SchedulerAPI api.Scheduler

	RestartChan     dtypes.RestartChan
	RestartDoneChan dtypes.RestartDoneChan

	*tunclient.Services
	*TunManager
}

Edge edge node

func (*Edge) CreateTunnel added in v0.1.21

func (edge *Edge) CreateTunnel(ctx context.Context, req *types.CreateTunnelReq) error

func (*Edge) GetEdgeOnlineStateFromScheduler added in v0.1.13

func (edge *Edge) GetEdgeOnlineStateFromScheduler(ctx context.Context) (bool, error)

func (*Edge) Restart added in v0.1.19

func (edge *Edge) Restart(ctx context.Context) error

func (*Edge) UserNATPunch

func (edge *Edge) UserNATPunch(ctx context.Context, sourceURL string, req *types.NatPunchReq) error

UserNATPunch checks network connectivity from the edge device to the specified URL.

func (*Edge) WaitQuiet

func (edge *Edge) WaitQuiet(ctx context.Context) error

WaitQuiet waits for the edge device to become idle.

type TunManager added in v0.1.21

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

func NewTunManager added in v0.1.21

func NewTunManager() *TunManager

func (*TunManager) AddTunclient added in v0.1.21

func (tm *TunManager) AddTunclient(tc *tunclient.Tunclient)

func (*TunManager) RemoveTunclient added in v0.1.21

func (tm *TunManager) RemoveTunclient(id string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳