Help us shape the future of Go! Take the 2026 Go Developer Survey

clientrpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCWorker

type RPCWorker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

RPCWorker stream worker

func NewRPCWorker

func NewRPCWorker(workers *worker.Workers, id int, label string) *RPCWorker

NewRPCWorker create a new RPCWorker

func (*RPCWorker) Command

func (w *RPCWorker) Command(c int)

Command sent to this worker

func (*RPCWorker) ID

func (w *RPCWorker) ID() int

ID return label of worker

func (*RPCWorker) Label

func (w *RPCWorker) Label() string

Label return label of worker

func (*RPCWorker) Run

func (w *RPCWorker) Run(wg *sync.WaitGroup, term *chan int)

Run is main function of this worker

func (*RPCWorker) SendTextMessage

SendTextMessage rpc entry point

func (*RPCWorker) Status

func (w *RPCWorker) Status(empty *empty.Empty, stream clientapi.ClientService_StatusServer) error

Status rpc entry point

func (*RPCWorker) Subscriptions

func (w *RPCWorker) Subscriptions() []*worker.Subscription

Subscriptions return a copy of current scubscriptions

func (*RPCWorker) Terminate

func (w *RPCWorker) Terminate()

Terminate the worker

Jump to

Keyboard shortcuts

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