Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repositories ¶
type Repositories interface {
ListByUser(ctx context.Context, user string, opts *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
}
type Stargazer ¶ added in v0.3.1
type Stargazer struct {
StarredAt time.Time `json:"starred_at"`
Action string `json:"-"`
RepoName string `json:"repo_name"`
RepoHTMLURL string `json:"repo_html_url"`
Login string `json:"login"`
UserHTMLURL string `json:"user_html_url"`
}
Stargazer represents a star from one user for one repository.
type WebhookHandler ¶ added in v0.3.1
type WebhookHandler struct {
StarEvent StarEventFunc
Logger *slog.Logger
Secret string
}
WebhookHandler receives GitHub events through a webhook.
Currently only supports the "star" event.
func (WebhookHandler) Handler ¶ added in v0.4.0
func (h WebhookHandler) Handler() http.Handler
func (WebhookHandler) Has ¶ added in v0.4.0
func (h WebhookHandler) Has(evt string) bool
Has returns true if the handler for the given event is defined.