Documentation
¶
Index ¶
- Variables
- func NewCreateWorkerRequest() ([]byte, error)
- func NewCreateWorkerResponse(id uint64) ([]byte, error)
- func NewDestroyWorkerRequest(id uint64) ([]byte, error)
- func NewDestroyWorkerResponse() ([]byte, error)
- func NewDummyRequest() ([]byte, error)
- func NewExecuteRequest(filePath string, args []string) ([]byte, error)
- func NewExecuteResponse(code int64) ([]byte, error)
- func NewGetWorkerRequest(id uint64) ([]byte, error)
- func NewGetWorkerResponse(serviceName, serviceID string) ([]byte, error)
- func ParseAction(b []byte) (any, error)
- func ParseResponse(b []byte) (any, error)
- type CreateWorkerRequest
- type CreateWorkerResponse
- type DestroyWorkerRequest
- type DestroyWorkerResponse
- type DummyRequest
- type ExecuteRequest
- type ExecuteResponse
- type GetWorkerRequest
- type GetWorkerResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownAction = errors.New("unknown action") ErrUnknownResponse = errors.New("unknown response") )
Functions ¶
func NewCreateWorkerRequest ¶
func NewCreateWorkerResponse ¶
func NewDestroyWorkerRequest ¶
func NewDummyRequest ¶
func NewExecuteResponse ¶
func NewGetWorkerRequest ¶
func NewGetWorkerResponse ¶
func ParseAction ¶
func ParseResponse ¶
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 ExecuteResponse ¶
type ExecuteResponse struct {
Code int64
}
type GetWorkerRequest ¶
type GetWorkerRequest struct {
ID uint64
}
type GetWorkerResponse ¶
Click to show internal directories.
Click to hide internal directories.