proto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMessage = errors.New("unknown message")
)

Functions

func Marshal added in v0.4.0

func Marshal(data any) ([]byte, error)

func ReplyMessageSubject added in v0.4.0

func ReplyMessageSubject(agentID, msgID string) string

func StartWorkerSubject added in v0.4.0

func StartWorkerSubject(agentID, workerID string) string

func StopWorkerSubject added in v0.4.0

func StopWorkerSubject(agentID, workerID string) string

func Unmarshal added in v0.4.0

func Unmarshal(b []byte) (any, error)

func UpdateClientInfoSubject added in v0.4.0

func UpdateClientInfoSubject(agentID string) string

func UpdateWorkerStatusSubject added in v0.4.0

func UpdateWorkerStatusSubject(agentID, workerID string) string

func WriteWorkerStdinSubject added in v0.4.0

func WriteWorkerStdinSubject(agentID, workerID string) string

func WriteWorkerStdoutSubject added in v0.4.0

func WriteWorkerStdoutSubject(agentID, workerID string) string

Types

type StartWorkerRequest added in v0.4.0

type StartWorkerRequest struct {
	Command string
	Args    []string
	Env     []string
}

type StartWorkerResponse added in v0.4.0

type StartWorkerResponse struct {
	Error error
}

type StopWorkerRequest added in v0.4.0

type StopWorkerRequest struct{}

type StopWorkerResponse added in v0.4.0

type StopWorkerResponse struct {
	Error error
}

type UpdateClientInfo added in v0.4.0

type UpdateClientInfo struct {
	Username string
	Hostname string
	System   string
	Address  string
}

type UpdateWorkerStatus added in v0.4.0

type UpdateWorkerStatus struct {
	Status int64
}

type UpdateWorkerStdio added in v0.4.0

type UpdateWorkerStdio struct {
	Data []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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