worker

package
v2.0.0-...-07333c2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(serverAddress string, serverCertificate string, name string) *Worker

func (*Worker) Connect

func (w *Worker) Connect() error

func (*Worker) GetInfo

func (w *Worker) GetInfo(client *rpc2.Client, req proto.GetInfoReq, resp *proto.GetInfoResp) error

GetInfo implements proto.WorkerService

func (*Worker) Ping

func (w *Worker) Ping(client *rpc2.Client, req proto.PingReq, resp *proto.PingResp) error

Ping implements proto.WorkerService

func (*Worker) RunScript

func (w *Worker) RunScript(script string) ([]byte, error)

func (*Worker) SendMessage

func (w *Worker) SendMessage(client *rpc2.Client, req proto.SendMessageReq, resp *proto.SendMessageResp) error

SendMessage implements proto.WorkerService

Jump to

Keyboard shortcuts

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