proto

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownAction   = errors.New("unknown action")
	ErrUnknownResponse = errors.New("unknown response")
)

Functions

func NewCreateWorkerRequest

func NewCreateWorkerRequest() ([]byte, error)

func NewCreateWorkerResponse

func NewCreateWorkerResponse(id uint64) ([]byte, error)

func NewDestroyWorkerRequest

func NewDestroyWorkerRequest(id uint64) ([]byte, error)

func NewDestroyWorkerResponse

func NewDestroyWorkerResponse() ([]byte, error)

func NewDummyRequest

func NewDummyRequest() ([]byte, error)

func NewExecuteRequest

func NewExecuteRequest(filePath string, args []string) ([]byte, error)

func NewExecuteResponse

func NewExecuteResponse(code int64) ([]byte, error)

func NewGetWorkerRequest

func NewGetWorkerRequest(id uint64) ([]byte, error)

func NewGetWorkerResponse

func NewGetWorkerResponse(serviceName, serviceID string) ([]byte, error)

func ParseAction

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

func ParseResponse

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

Types

type CreateWorkerRequest

type CreateWorkerRequest struct{}

type CreateWorkerResponse

type CreateWorkerResponse struct {
	ID uint64
}

type DestroyWorkerRequest

type DestroyWorkerRequest struct {
	ID uint64
}

type DestroyWorkerResponse

type DestroyWorkerResponse struct{}

type DummyRequest

type DummyRequest struct{}

type ExecuteRequest

type ExecuteRequest struct {
	Args     []string
	FilePath string
}

type ExecuteResponse

type ExecuteResponse struct {
	Code int64
}

type GetWorkerRequest

type GetWorkerRequest struct {
	ID uint64
}

type GetWorkerResponse

type GetWorkerResponse struct {
	ServiceName string
	ServiceID   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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