scheduler

package
v0.0.0-...-38c0829 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client struct.

func (*Client) Name

func (c *Client) Name() string

Name returns the name of the remote.

func (*Client) Reaction

func (c *Client) Reaction(_ models.Message, _ models.Rule, _ *models.Bot)

Reaction implementation to satisfy remote interface.

func (*Client) Read

func (c *Client) Read(inputMsgs chan<- models.Message, rules map[string]models.Rule, bot *models.Bot)

Read implementation to satisfy remote interface This will read in schedule type rules from the rules map and create cronjobs that will trigger messages to be sent for processing to the Matcher function via 'inputMsgs' channel.

func (*Client) Send

func (c *Client) Send(_ models.Message, _ *models.Bot)

Send implementation to satisfy remote interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL