Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackHandler ¶
type CallbackHandler struct {
// contains filtered or unexported fields
}
func NewCallbackHandler ¶
func NewCallbackHandler(cfg *CallbackHandlerConfig) (*CallbackHandler, error)
func (*CallbackHandler) ServeHTTP ¶
func (h *CallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CallbackHandlerConfig ¶
type CallbackHandlerConfig struct {
service.OAuthV2ResponseGetter
repository.SlackClientIDGetter
repository.SlackClientSecretGetter
repository.SlackAccessTokenPutter
repository.SessionGetter
repository.SessionPutter
repository.SessionDeleter
}
type IndexHandler ¶
type IndexHandler struct {
// contains filtered or unexported fields
}
func NewIndexHandler ¶
func NewIndexHandler(cfg *IndexHandlerConfig) (*IndexHandler, error)
func (*IndexHandler) ServeHTTP ¶
func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type IndexHandlerConfig ¶
type IndexHandlerConfig struct {
repository.SlackClientIDGetter
repository.SessionGetter
repository.SessionPutter
}
type NotifyHandler ¶
type NotifyHandler struct {
// contains filtered or unexported fields
}
func NewNotifyHandler ¶
func NewNotifyHandler(cfg *NotifyHandlerConfig) (*NotifyHandler, error)
func (*NotifyHandler) ServeHTTP ¶
func (h *NotifyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type NotifyHandlerConfig ¶
type SlashCommandHandler ¶
type SlashCommandHandler struct {
// contains filtered or unexported fields
}
func NewSlashCommandHandler ¶
func NewSlashCommandHandler(cfg *SlashCommandHandlerConfig) (*SlashCommandHandler, error)
func (*SlashCommandHandler) Handle ¶
func (h *SlashCommandHandler) Handle(ctx context.Context, slash *slack.SlashCommand) (string, error)
type SlashCommandHandlerConfig ¶
type SlashCommandHandlerConfig struct {
service.SlackWebhookPoster
repository.SlackPermissionGetter
repository.SlackPermissionAllower
}
type SlashHandler ¶
type SlashHandler struct {
// contains filtered or unexported fields
}
func NewSlashHandler ¶
func NewSlashHandler(cfg *SlashHandlerConfig) (*SlashHandler, error)
func (*SlashHandler) ServeHTTP ¶
func (h *SlashHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SlashHandlerConfig ¶
type SlashHandlerConfig struct {
repository.SlackSigningSecretGetter
service.LambdaInvoker
SlashFunctionName string
}
Click to show internal directories.
Click to hide internal directories.