stub out some initial work and go generate

This commit is contained in:
Barak Michener 2020-12-03 20:05:30 +00:00
commit 39385bc8b2
9 changed files with 3343 additions and 0 deletions

33
servicer.go Normal file
View file

@ -0,0 +1,33 @@
package main
import (
"context"
"github.com/barakmich/go_raylet/ray_rpc"
)
type Raylet struct {
Objects ObjectStore
}
func (r *Raylet) GetObject(_ context.Context, req *ray_rpc.GetRequest) (*ray_rpc.GetResponse, error) {
panic("not implemented") // TODO: Implement
}
func (r *Raylet) PutObject(_ context.Context, _ *ray_rpc.PutRequest) (*ray_rpc.PutResponse, error) {
panic("not implemented") // TODO: Implement
}
func (r *Raylet) WaitObject(_ context.Context, _ *ray_rpc.WaitRequest) (*ray_rpc.WaitResponse, error) {
panic("not implemented") // TODO: Implement
}
func (r *Raylet) Schedule(_ context.Context, _ *ray_rpc.ClientTask) (*ray_rpc.ClientTaskTicket, error) {
panic("not implemented") // TODO: Implement
}
func NewMemRaylet() *Raylet {
return &Raylet{
Objects: NewMemObjectStore(),
}
}