Documentation ¶
Index ¶
- type RPCScheduler
- func (s *RPCScheduler) Add(ctx context.Context, order, batchID string) error
- func (s *RPCScheduler) Close()
- func (s *RPCScheduler) Done(ctx context.Context, id string, img, stdout, stderr []byte, ...) error
- func (s *RPCScheduler) Get(ctx context.Context) (string, string, error)
- func (s *RPCScheduler) Renew(ctx context.Context, id string, dur time.Duration) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCScheduler ¶
type RPCScheduler struct { Client pb.SchedulerClient // contains filtered or unexported fields }
func NewScheduler ¶
func NewScheduler(ctx context.Context, addr string) (*RPCScheduler, error)
func (*RPCScheduler) Add ¶
func (s *RPCScheduler) Add(ctx context.Context, order, batchID string) error
func (*RPCScheduler) Close ¶
func (s *RPCScheduler) Close()
func (*RPCScheduler) Done ¶
func (s *RPCScheduler) Done(ctx context.Context, id string, img, stdout, stderr []byte, meta *pb.RenderingMetadata) error
Click to show internal directories.
Click to hide internal directories.