announcement

package
v0.0.0-...-2db11b5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package announcement sends announcements to mattermost

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(repo repository.Repository) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, announcement model.Announcement) error

Create handles a new announcement It changes check statusses and schedules the announcement

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, announcement model.Announcement) error

Delete handles an announcement delete It will change the check statusses and cancel the announcement task

func (*Client) ScheduleAnnouncement

func (c *Client) ScheduleAnnouncement(ctx context.Context, announcement model.Announcement) error

func (*Client) Update

func (c *Client) Update(ctx context.Context, oldAnnouncement, newAnnouncement model.Announcement) error

Update handles an update to an announcement It will change the check statusses and reschedule the announcement

Jump to

Keyboard shortcuts

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