Documentation ¶
Index ¶
- func GitHubAuth(secret string) func(http.Handler) http.Handler
- func GithubWebHookHandler(notifier Notifier, store Store, l *slog.Logger) http.Handler
- func Run(ctx context.Context, version string, l *slog.Logger) error
- func Scan(ctx context.Context, user string, c Client, s Store, n Notifier, ...) error
- type Client
- type Notifier
- type Notifiers
- type SLogNotifier
- type SlackNotifier
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitHubAuth ¶
GitHubAuth is a HTTP middleware that verifies the HMAC SHA-265 signature sent by GitHub.
func GithubWebHookHandler ¶
A GithubWebHookHandler receives events from a Slack App. The current implementation is limited to StarEvents.
Types ¶
type Notifier ¶
type Notifier interface {
Notify(repository *github.Repository, gazers []*github.Stargazer, added bool)
}
type SLogNotifier ¶
func (SLogNotifier) Notify ¶
func (s SLogNotifier) Notify(repository *github.Repository, gazers []*github.Stargazer, added bool)
type SlackNotifier ¶
func (SlackNotifier) Notify ¶
func (s SlackNotifier) Notify(repository *github.Repository, gazers []*github.Stargazer, added bool)
Click to show internal directories.
Click to hide internal directories.