edge

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 15 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

	Transport    *quic.Transport
	SchedulerAPI api.Scheduler
}

Edge edge node

func (*Edge) ExternalServiceAddress

func (edge *Edge) ExternalServiceAddress(ctx context.Context, candidateURL string) (string, error)

ExternalServiceAddress returns the external service address of the scheduler.

func (*Edge) GetEdgeOnlineStateFromScheduler added in v0.1.13

func (edge *Edge) GetEdgeOnlineStateFromScheduler(ctx context.Context) (bool, 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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