Documentation ¶
Index ¶
- Constants
- type Conf
- type SchedulerConf
- type Servlet
- func (s *Servlet) CheckTokenExisted(token string) (err error)
- func (s *Servlet) CreateJob(ctx context.Context, req *pb.CreateJobRequest) (resp *pb.CreateJobResponse, err error)
- func (s *Servlet) CreateRunner(runnerID string) (runner *m.Runner, err error)
- func (s *Servlet) DestoryRunner(ctx context.Context, req *pb.DestoryRunnerRequest) (resp *pb.DestoryRunnerResponse, err error)
- func (s *Servlet) Free()
- func (s *Servlet) HeartBeat(ctx context.Context, req *pb.HeartBeatRequest) (resp *pb.HeartBeatResponse, err error)
- func (s *Servlet) RemoveJob(ctx context.Context, req *pb.RemoveJobRequest) (resp *pb.RemoveJobResponse, err error)
- func (s *Servlet) SelectIdleRunner() (runner *m.Runner, err error)
- func (s *Servlet) StartOrDie() (err error)
- func (s *Servlet) StopJob(ctx context.Context, req *pb.StopJobRequest) (resp *pb.StopJobResponse, err error)
Constants ¶
View Source
const ( CREATE_JOB = "create_job" STOP_JOB = "stop_job" DESTORY_RUNNER = "destory" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type SchedulerConf ¶
type Servlet ¶
func (*Servlet) CheckTokenExisted ¶
func (*Servlet) CreateJob ¶
func (s *Servlet) CreateJob(ctx context.Context, req *pb.CreateJobRequest) (resp *pb.CreateJobResponse, err error)
func (*Servlet) CreateRunner ¶
func (*Servlet) DestoryRunner ¶
func (s *Servlet) DestoryRunner(ctx context.Context, req *pb.DestoryRunnerRequest) (resp *pb.DestoryRunnerResponse, err error)
func (*Servlet) HeartBeat ¶
func (s *Servlet) HeartBeat(ctx context.Context, req *pb.HeartBeatRequest) (resp *pb.HeartBeatResponse, err error)
HeartBeat update job and runner info stored in database.
func (*Servlet) RemoveJob ¶
func (s *Servlet) RemoveJob(ctx context.Context, req *pb.RemoveJobRequest) (resp *pb.RemoveJobResponse, err error)
func (*Servlet) SelectIdleRunner ¶
func (*Servlet) StartOrDie ¶
func (*Servlet) StopJob ¶
func (s *Servlet) StopJob(ctx context.Context, req *pb.StopJobRequest) (resp *pb.StopJobResponse, err error)
Click to show internal directories.
Click to hide internal directories.