Documentation ¶
Overview ¶
Package worker is a generated protocol buffer package.
It is generated from these files:
payload.proto
It has these top-level messages:
Payload
Index ¶
- func Connect(workerList []string)
- func GetOrAssignUidsOverNetwork(ctx context.Context, xidToUid *map[string]uint64) (rerr error)
- func Init(ps, uStore *store.Store, idx, numInst uint64)
- func MutateOverNetwork(ctx context.Context, edges []x.DirectedEdge) (left []x.DirectedEdge, rerr error)
- func NewQuery(attr string, uids []uint64) []byte
- func ProcessTaskOverNetwork(ctx context.Context, qu []byte) (result []byte, rerr error)
- func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
- type Mutations
- type Payload
- type PayloadCodec
- type Pool
- type WorkerClient
- type WorkerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateOverNetwork ¶
func MutateOverNetwork(ctx context.Context, edges []x.DirectedEdge) (left []x.DirectedEdge, rerr error)
func ProcessTaskOverNetwork ¶
func RegisterWorkerServer ¶
func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
Types ¶
type Mutations ¶
type Mutations struct { Set []x.DirectedEdge Del []x.DirectedEdge }
type Payload ¶
type Payload struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data,omitempty"`
}
func (*Payload) Descriptor ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
type PayloadCodec ¶
type PayloadCodec struct{}
func (*PayloadCodec) Marshal ¶
func (cb *PayloadCodec) Marshal(v interface{}) ([]byte, error)
func (*PayloadCodec) String ¶
func (cb *PayloadCodec) String() string
func (*PayloadCodec) Unmarshal ¶
func (cb *PayloadCodec) Unmarshal(data []byte, v interface{}) error
type WorkerClient ¶
type WorkerClient interface { Hello(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Payload, error) GetOrAssign(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Payload, error) Mutate(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Payload, error) ServeTask(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Payload, error) }
func NewWorkerClient ¶
func NewWorkerClient(cc *grpc.ClientConn) WorkerClient
Click to show internal directories.
Click to hide internal directories.