v1

package
v0.0.0-...-b5ae699 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
}

Handle is handler for invokee service

func (Handle) Connected

func (h Handle) Connected(
	ctx context.Context,
	addr *net.TCPAddr,
	stream chan<- v1.Task,
) (e error)

Connected is invoked when invokee client connected.

func (Handle) Disconnected

func (h Handle) Disconnected(addr *net.TCPAddr)

Disconnected is invoked when invokee client disconnected

func (Handle) HandoverRequested

func (h Handle) HandoverRequested(addr *net.TCPAddr) (e error)

HandoverRequested not supported for this agent delegate.

func (Handle) Reported

func (h Handle) Reported(req *v1.ReportRequest) (e error)

Reported is invoked when the invokee client requested to report for the task.

type TaskAssigner

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

TaskAssigner holds stream for assigning a task to the worker.

func (TaskAssigner) Assign

func (ta TaskAssigner) Assign(ctx context.Context, t interface{}) (e error)

Assign sends the specified task to the worker.

func (TaskAssigner) Close

func (ta TaskAssigner) Close()

Close closes the connected channel

Jump to

Keyboard shortcuts

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