Documentation
¶
Index ¶
- type BotRunner
- type QueuedBot
- type RuntimeService
- func (s *RuntimeService) GetRuntimeStats(ctx context.Context, req *pb.Empty) (*pb.RuntimeStats, error)
- func (s *RuntimeService) StartBot(ctx context.Context, req *pb.StartBotRequest) (*pb.StartBotResponse, error)
- func (s *RuntimeService) StopBot(ctx context.Context, req *pb.StopBotRequest) (*pb.StopBotResponse, error)
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeService ¶
type RuntimeService struct {
pb.UnimplementedRuntimeServiceServer
// contains filtered or unexported fields
}
func NewRuntimeService ¶
func NewRuntimeService(maxBots int) (*RuntimeService, error)
func NewRuntimeServiceWithRunner ¶
func NewRuntimeServiceWithRunner(runner BotRunner, maxBots int) *RuntimeService
func (*RuntimeService) GetRuntimeStats ¶
func (s *RuntimeService) GetRuntimeStats(ctx context.Context, req *pb.Empty) (*pb.RuntimeStats, error)
func (*RuntimeService) StartBot ¶
func (s *RuntimeService) StartBot(ctx context.Context, req *pb.StartBotRequest) (*pb.StartBotResponse, error)
func (*RuntimeService) StopBot ¶
func (s *RuntimeService) StopBot(ctx context.Context, req *pb.StopBotRequest) (*pb.StopBotResponse, error)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (*Scheduler) GetActiveCount ¶
func (*Scheduler) GetQueueSize ¶
func (*Scheduler) NotifyStop ¶
Click to show internal directories.
Click to hide internal directories.