worker

package
v0.0.0-...-3a513bd Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package worker is a generated protocol buffer package.

It is generated from these files:

worker.proto

It has these top-level messages:

InfoRequest
InfoReply
ExecRequest
ExecReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWorkerServer

func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)

Types

type ExecReply

type ExecReply struct {
}

Worker execution reply

func (*ExecReply) Descriptor

func (*ExecReply) Descriptor() ([]byte, []int)

func (*ExecReply) ProtoMessage

func (*ExecReply) ProtoMessage()

func (*ExecReply) Reset

func (m *ExecReply) Reset()

func (*ExecReply) String

func (m *ExecReply) String() string

type ExecRequest

type ExecRequest struct {
	Function string               `protobuf:"bytes,1,opt,name=function" json:"function,omitempty"`
	Args     *google_protobuf.Any `protobuf:"bytes,2,opt,name=args" json:"args,omitempty"`
	Data     *google_protobuf.Any `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
}

Worker execution request

func (*ExecRequest) Descriptor

func (*ExecRequest) Descriptor() ([]byte, []int)

func (*ExecRequest) GetArgs

func (m *ExecRequest) GetArgs() *google_protobuf.Any

func (*ExecRequest) GetData

func (m *ExecRequest) GetData() *google_protobuf.Any

func (*ExecRequest) GetFunction

func (m *ExecRequest) GetFunction() string

func (*ExecRequest) ProtoMessage

func (*ExecRequest) ProtoMessage()

func (*ExecRequest) Reset

func (m *ExecRequest) Reset()

func (*ExecRequest) String

func (m *ExecRequest) String() string

type InfoReply

type InfoReply struct {
	Id           string   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Version      string   `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	MaxParallel  int32    `protobuf:"varint,3,opt,name=max_parallel,json=maxParallel" json:"max_parallel,omitempty"`
	Capabilities []string `protobuf:"bytes,4,rep,name=capabilities" json:"capabilities,omitempty"`
}

Worker information reply

func (*InfoReply) Descriptor

func (*InfoReply) Descriptor() ([]byte, []int)

func (*InfoReply) GetCapabilities

func (m *InfoReply) GetCapabilities() []string

func (*InfoReply) GetId

func (m *InfoReply) GetId() string

func (*InfoReply) GetMaxParallel

func (m *InfoReply) GetMaxParallel() int32

func (*InfoReply) GetVersion

func (m *InfoReply) GetVersion() string

func (*InfoReply) ProtoMessage

func (*InfoReply) ProtoMessage()

func (*InfoReply) Reset

func (m *InfoReply) Reset()

func (*InfoReply) String

func (m *InfoReply) String() string

type InfoRequest

type InfoRequest struct {
}

Worker information request

func (*InfoRequest) Descriptor

func (*InfoRequest) Descriptor() ([]byte, []int)

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) Reset

func (m *InfoRequest) Reset()

func (*InfoRequest) String

func (m *InfoRequest) String() string

type WorkerClient

type WorkerClient interface {
	// Request client informations
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoReply, error)
	Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecReply, error)
}

func NewWorkerClient

func NewWorkerClient(cc *grpc.ClientConn) WorkerClient

type WorkerServer

type WorkerServer interface {
	// Request client informations
	Info(context.Context, *InfoRequest) (*InfoReply, error)
	Exec(context.Context, *ExecRequest) (*ExecReply, error)
}

Jump to

Keyboard shortcuts

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