33 lines
814 B
Go
33 lines
814 B
Go
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(),
|
|
}
|
|
}
|