slack

package
v0.0.0-...-56269a8 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(config *Config, mealService dinny.MealService, memberService dinny.MemberService) (*service, error)

NewService returns a new instance of slack.Service.

Types

type Config

type Config struct {
	Channel       string
	BotSigningKey string
}

Config represents the configuration values to communicate with the slack API.

type Service

type Service interface {
	PostEatingTomorrow() error
	WeeklyUpdate() error
	ReactionAddedEvent(e *slackevents.ReactionAddedEvent) error
	ReactionRemovedEvent(e *slackevents.ReactionRemovedEvent) error
}

Service represents the service to communicate with the Slack API.

Jump to

Keyboard shortcuts

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