remote

package
v0.0.0-...-e9cb272 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: GPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandCompletedType = "command-completed"
)

Variables

This section is empty.

Functions

func ListenForConnections

func ListenForConnections()

ListenForConnections is the entrypoint. Listens for, and processes, the remote requests.

func NewNopSender

func NewNopSender() *nopSender

func NewWebhookSender

func NewWebhookSender(client *http.Client, endpoint string, token string) *webhookSender

func Setup

func Setup(remoteToken string, useWebsockets bool, wpCLIPath string, wpPath string, eventsWebhookURL string)

Setup configures the module (not super ideal, but this module needs some reworking to make it better)

Types

type Clock

type Clock interface {
	Now() time.Time
}

Jump to

Keyboard shortcuts

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