Documentation
¶
Overview ¶
Package announcement sends announcements to mattermost
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, announcement model.Announcement) error
- func (c *Client) Delete(ctx context.Context, announcement model.Announcement) error
- func (c *Client) ScheduleAnnouncement(ctx context.Context, announcement model.Announcement) error
- func (c *Client) Update(ctx context.Context, oldAnnouncement, newAnnouncement model.Announcement) error
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 ¶
Create handles a new announcement It changes check statusses and schedules the announcement
func (*Client) Delete ¶
Delete handles an announcement delete It will change the check statusses and cancel the announcement task
func (*Client) ScheduleAnnouncement ¶
Click to show internal directories.
Click to hide internal directories.