slack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendWeeklyReport

func SendWeeklyReport(token, channel string, entries []*models.Entry) error

SendWeeklyReport sends a summary of the last week's entries to the specified Slack channel This function can be called directly without creating a Client instance

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a wrapper around the Slack API client

func NewClient

func NewClient(config Config) *Client

NewClient creates a new Slack client

func (*Client) SendWeeklyReport

func (c *Client) SendWeeklyReport(entries []*models.Entry) error

SendWeeklyReport sends a summary of the last week's entries to the configured Slack channel

type Config

type Config struct {
	Token   string
	Channel string
	Enabled bool
}

Config holds the Slack configuration values

Jump to

Keyboard shortcuts

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