feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
Этот коммит содержится в:
13
internal/sender/test_message.go
Обычный файл
13
internal/sender/test_message.go
Обычный файл
@@ -0,0 +1,13 @@
|
||||
package sender
|
||||
|
||||
import (
|
||||
"rsgit.ru/rsmon/rsmon/app/models"
|
||||
)
|
||||
|
||||
func TestMessage(contact *models.Contact) (*string, error) {
|
||||
message := models.Message{
|
||||
Contact: contact,
|
||||
Kind: "test",
|
||||
}
|
||||
return RunMessage(&message)
|
||||
}
|
||||
Ссылка в новой задаче
Block a user