Documentation
¶
Index ¶
- func CancelTasks(id uint32) error
- func Close() error
- func CloseTaskGroup(id uint32) error
- func GetTaskOutput(id int64) ([]byte, error)
- func HelloHandshake(ctx context.Context) error
- func HelloInit(ctx context.Context) (grpc.ServerStreamingClient[operatorv1.HelloResponse], error)
- func HelloMonitor(ctx context.Context) error
- func Init(ctx context.Context, host string, token string) error
- func NewTask(id uint32, v *operatorv1.NewTaskRequest) error
- func NewTaskGroup(id uint32, cmd string, visible bool) error
- func NewTaskGroupMessage(id uint32, tm defaults.TaskMessage, message string) error
- func PollBeaconTasks(b *beacon.Beacon) error
- func SendChatMessage(message string) error
- func SubscribeBeacons(ctx context.Context) error
- func SubscribeChat(ctx context.Context) error
- func SubscribeTasks(ctx context.Context) error
- func UnpollBeaconTasks(b *beacon.Beacon) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelloHandshake ¶
обработка хендшейка из control стрима
func HelloInit ¶
func HelloInit(ctx context.Context) (grpc.ServerStreamingClient[operatorv1.HelloResponse], error)
первичное подключение оператора к control стриму
func HelloMonitor ¶
поддержание подписки на control стрим
func NewTaskGroup ¶
открытие новой таск группы
func NewTaskGroupMessage ¶
func NewTaskGroupMessage(id uint32, tm defaults.TaskMessage, message string) error
отправка сообщения в таск группу
func PollBeaconTasks ¶
подписка на получение тасков для определенного бикона
func SubscribeBeacons ¶
подписка на получение биконов
func SubscribeChat ¶
подписка на получение сообщений из чата
func SubscribeTasks ¶
подписка на получение обновлений по таскам
func UnpollBeaconTasks ¶
стоп подписки на получение тасков для определенного бикона
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.