Documentation ¶
Index ¶
- Variables
- func GetAndSendMessage(ctx workflow.Context, url string) error
- func PrintFeedToTelegraph(feed rss.Feed) string
- func RssFeed(ctx context.Context, lastRunTime, thisRunTime, lastmodified time.Time, ...) (*rss.Feed, error)
- func RssWorker()
- func SendMessage(ctx context.Context, message interface{}) error
- type CronResult
- type TgBot
Constants ¶
This section is empty.
Variables ¶
View Source
var C client.Client
View Source
var DefaultHostPort = "49.235.242.124:7233"
View Source
var NoRetry = &temporal.RetryPolicy{
MaximumAttempts: 1,
}
Functions ¶
func PrintFeedToTelegraph ¶
func RssFeed ¶
func RssFeed(ctx context.Context, lastRunTime, thisRunTime, lastmodified time.Time, etag string) (*rss.Feed, error)
DoSomething is an Activity
func SendMessage ¶
Types ¶
type CronResult ¶
CronResult is used to return data from one cron run to the next
func CronRssFeedWorkflow ¶
func CronRssFeedWorkflow(ctx workflow.Context) (*CronResult, error)
SampleCronWorkflow executes on the given schedule The schedule is provided when starting the Workflow
Click to show internal directories.
Click to hide internal directories.