Documentation
¶
Index ¶
- type Edge
- func (edge *Edge) CreateTunnel(ctx context.Context, req *types.CreateTunnelReq) error
- func (edge *Edge) GetEdgeOnlineStateFromScheduler(ctx context.Context) (bool, error)
- func (edge *Edge) Restart(ctx context.Context) error
- func (edge *Edge) UserNATPunch(ctx context.Context, sourceURL string, req *types.NatPunchReq) error
- func (edge *Edge) WaitQuiet(ctx context.Context) error
- type TunManager
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) GetEdgeOnlineStateFromScheduler ¶ added in v0.1.13
func (*Edge) UserNATPunch ¶
UserNATPunch checks network connectivity from the edge device to the specified URL.
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)
Click to show internal directories.
Click to hide internal directories.