Documentation ¶
Index ¶
- func NumberOptions(left, right int) []*slack.OptionBlockObject
- type AddingAnswererHandler
- func (h AddingAnswererHandler) Execute(ctx context.Context, input AddingAnswererHandlerInput) domain.Error
- func (h AddingAnswererHandler) HandleAddingAnswerer(ctx context.Context, input AddingAnswererHandlerInput, actionName string, ...) (AddingAnswererHandlerInput, domain.Error)
- func (h AddingAnswererHandler) PrintFixed(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- func (h AddingAnswererHandler) RequestInput(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- type AddingAnswererHandlerInput
- type Answer
- type AnsweringHandler
- func (h AnsweringHandler) Execute(ctx context.Context, input AnsweringHandlerInput) domain.Error
- func (h AnsweringHandler) HandleAnswering(ctx context.Context, input AnsweringHandlerInput, actionName string, ...) (AnsweringHandlerInput, domain.Error)
- func (h AnsweringHandler) PrintFixed(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- func (h AnsweringHandler) RequestInput(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- type AnsweringHandlerInput
- type Callback
- type CallbackAction
- type CreatingAnswererHandler
- func (h CreatingAnswererHandler) Execute(ctx context.Context, input CreatingAnswererHandlerInput) domain.Error
- func (h CreatingAnswererHandler) HandleCreatingAnswerer(ctx context.Context, input CreatingAnswererHandlerInput, actionName string, ...) (CreatingAnswererHandlerInput, domain.Error)
- func (h CreatingAnswererHandler) PrintFixed(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- func (h CreatingAnswererHandler) RequestInput(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- type CreatingAnswererHandlerInput
- type EditingQuestionnaireHandler
- func (h EditingQuestionnaireHandler) Execute(ctx context.Context, input EditingQuestionnaireHandlerInput) (domain.Questionnaire, domain.Error)
- func (h EditingQuestionnaireHandler) HandleEditingQuestionnaire(ctx context.Context, input EditingQuestionnaireHandlerInput, actionName string, ...) (EditingQuestionnaireHandlerInput, domain.Error)
- func (h EditingQuestionnaireHandler) PrintFixed(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- func (h EditingQuestionnaireHandler) RequestInput(ctx context.Context, channelID string, updateTargetID null.String, ...) domain.Error
- type EditingQuestionnaireHandlerInput
- func (p *EditingQuestionnaireHandlerInput) FromDomainObject(questionnaire domain.Questionnaire)
- func (p EditingQuestionnaireHandlerInput) ToCreatingUsecaseInput() application.CreatingQuestionnaireUsecaseInput
- func (p EditingQuestionnaireHandlerInput) ToUpdatingUsecaseInput() application.UpdatingQuestionnaireUsecaseInput
- type HTTPHandler
- type InmemoryStore
- type ParamStore
- type PostTargets
- type Poster
- type Question
- type Schedules
- type SlackPostTarget
- type StoreValue
- type SuggestionRequestPayload
- type WeekdayAndTimeSchedule
- type YearMonthDayScheduleException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumberOptions ¶
func NumberOptions(left, right int) []*slack.OptionBlockObject
Types ¶
type AddingAnswererHandler ¶
type AddingAnswererHandler struct {
// contains filtered or unexported fields
}
genconstructor
func NewAddingAnswererHandler ¶
func NewAddingAnswererHandler( slackClient *slack.Client, usecase application.AddingAnswererUsecase, ) AddingAnswererHandler
func (AddingAnswererHandler) Execute ¶
func (h AddingAnswererHandler) Execute( ctx context.Context, input AddingAnswererHandlerInput, ) domain.Error
func (AddingAnswererHandler) HandleAddingAnswerer ¶
func (h AddingAnswererHandler) HandleAddingAnswerer( ctx context.Context, input AddingAnswererHandlerInput, actionName string, value string, ) (AddingAnswererHandlerInput, domain.Error)
func (AddingAnswererHandler) PrintFixed ¶
func (h AddingAnswererHandler) PrintFixed( ctx context.Context, channelID string, updateTargetID null.String, input AddingAnswererHandlerInput, ) domain.Error
func (AddingAnswererHandler) RequestInput ¶
func (h AddingAnswererHandler) RequestInput( ctx context.Context, channelID string, updateTargetID null.String, callbackID string, input AddingAnswererHandlerInput, ) domain.Error
type AddingAnswererHandlerInput ¶
type AddingAnswererHandlerInput struct { QuestionnaireID string AnswererID string ChannelID string UserID string NeedsMention bool }
func (AddingAnswererHandlerInput) ToUsecaseInput ¶
func (p AddingAnswererHandlerInput) ToUsecaseInput() application.AddingAnswererUsecaseInput
type AnsweringHandler ¶
type AnsweringHandler struct {
// contains filtered or unexported fields
}
genconstructor
func NewAnsweringHandler ¶
func NewAnsweringHandler( slackClient *slack.Client, usecase application.AnsweringUsecase, ) AnsweringHandler
func (AnsweringHandler) Execute ¶
func (h AnsweringHandler) Execute( ctx context.Context, input AnsweringHandlerInput, ) domain.Error
func (AnsweringHandler) HandleAnswering ¶
func (h AnsweringHandler) HandleAnswering( ctx context.Context, input AnsweringHandlerInput, actionName string, value string, ) (AnsweringHandlerInput, domain.Error)
func (AnsweringHandler) PrintFixed ¶
func (h AnsweringHandler) PrintFixed( ctx context.Context, channelID string, updateTargetID null.String, input AnsweringHandlerInput, ) domain.Error
func (AnsweringHandler) RequestInput ¶
func (h AnsweringHandler) RequestInput( ctx context.Context, channelID string, updateTargetID null.String, callbackID string, input AnsweringHandlerInput, ) domain.Error
type AnsweringHandlerInput ¶
type AnsweringHandlerInput struct { QuestionnaireID string QuestionnaireTitle string AnswererID string Answers []Answer }
func (AnsweringHandlerInput) ToUsecaseInput ¶
func (p AnsweringHandlerInput) ToUsecaseInput() application.AnsweringUsecaseInput
type Callback ¶
type Callback struct { Token string Actions []CallbackAction Container struct { ChannelID string `json:"channel_id"` MessageTS string `json:"message_ts"` } }
type CallbackAction ¶
type CallbackAction struct { ActionID string `json:"action_id"` BlockID string `json:"block_id"` Value string `json:"value"` SelectedOption struct { Value string } `json:"selected_option"` SelectedDate string `json:"selected_date"` SelectedUser string `json:"selected_user"` SelectedConversation string `json:"selected_conversation"` SelectedChannel string `json:"selected_channel"` }
type CreatingAnswererHandler ¶
type CreatingAnswererHandler struct {
// contains filtered or unexported fields
}
genconstructor
func NewCreatingAnswererHandler ¶
func NewCreatingAnswererHandler( slackClient *slack.Client, usecase application.CreatingAnswererUsecase, ) CreatingAnswererHandler
func (CreatingAnswererHandler) Execute ¶
func (h CreatingAnswererHandler) Execute( ctx context.Context, input CreatingAnswererHandlerInput, ) domain.Error
func (CreatingAnswererHandler) HandleCreatingAnswerer ¶
func (h CreatingAnswererHandler) HandleCreatingAnswerer( ctx context.Context, input CreatingAnswererHandlerInput, actionName string, value string, ) (CreatingAnswererHandlerInput, domain.Error)
func (CreatingAnswererHandler) PrintFixed ¶
func (h CreatingAnswererHandler) PrintFixed( ctx context.Context, channelID string, updateTargetID null.String, input CreatingAnswererHandlerInput, ) domain.Error
func (CreatingAnswererHandler) RequestInput ¶
func (h CreatingAnswererHandler) RequestInput( ctx context.Context, channelID string, updateTargetID null.String, callbackID string, input CreatingAnswererHandlerInput, ) domain.Error
type CreatingAnswererHandlerInput ¶
type CreatingAnswererHandlerInput struct {
Name string
}
func (CreatingAnswererHandlerInput) ToUsecaseInput ¶
func (p CreatingAnswererHandlerInput) ToUsecaseInput() application.CreatingAnswererUsecaseInput
type EditingQuestionnaireHandler ¶
type EditingQuestionnaireHandler struct {
// contains filtered or unexported fields
}
genconstructor
func NewEditingQuestionnaireHandler ¶
func NewEditingQuestionnaireHandler( slackClient *slack.Client, creatingQuestionnaireUsecase application.CreatingQuestionnaireUsecase, updatingQuestionnaireUsecase application.UpdatingQuestionnaireUsecase, ) EditingQuestionnaireHandler
func (EditingQuestionnaireHandler) Execute ¶
func (h EditingQuestionnaireHandler) Execute( ctx context.Context, input EditingQuestionnaireHandlerInput, ) (domain.Questionnaire, domain.Error)
func (EditingQuestionnaireHandler) HandleEditingQuestionnaire ¶
func (h EditingQuestionnaireHandler) HandleEditingQuestionnaire( ctx context.Context, input EditingQuestionnaireHandlerInput, actionName string, value string, ) (EditingQuestionnaireHandlerInput, domain.Error)
func (EditingQuestionnaireHandler) PrintFixed ¶
func (h EditingQuestionnaireHandler) PrintFixed( ctx context.Context, channelID string, updateTargetID null.String, input EditingQuestionnaireHandlerInput, questionnaireID string, ) domain.Error
func (EditingQuestionnaireHandler) RequestInput ¶
func (h EditingQuestionnaireHandler) RequestInput( ctx context.Context, channelID string, updateTargetID null.String, callbackID string, input EditingQuestionnaireHandlerInput, ) domain.Error
type EditingQuestionnaireHandlerInput ¶
type EditingQuestionnaireHandlerInput struct { ID string Title string Questions []Question Schedules Schedules PostTargets PostTargets }
func (*EditingQuestionnaireHandlerInput) FromDomainObject ¶
func (p *EditingQuestionnaireHandlerInput) FromDomainObject(questionnaire domain.Questionnaire)
func (EditingQuestionnaireHandlerInput) ToCreatingUsecaseInput ¶
func (p EditingQuestionnaireHandlerInput) ToCreatingUsecaseInput() application.CreatingQuestionnaireUsecaseInput
func (EditingQuestionnaireHandlerInput) ToUpdatingUsecaseInput ¶
func (p EditingQuestionnaireHandlerInput) ToUpdatingUsecaseInput() application.UpdatingQuestionnaireUsecaseInput
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
genconstructor
func NewHTTPHandler ¶
func NewHTTPHandler( slackVerificationToken string, logger *zap.Logger, questionnaireSearcher domain.QuestionnaireSearcher, answererSearcher domain.AnswererSearcher, editingQuestionnaireHandler EditingQuestionnaireHandler, creatingAnswererHandler CreatingAnswererHandler, addingAnswererHandler AddingAnswererHandler, answeringHandler AnsweringHandler, paramStore ParamStore, ) HTTPHandler
func (HTTPHandler) HandleEvent ¶
func (h HTTPHandler) HandleEvent(w http.ResponseWriter, r *http.Request)
func (HTTPHandler) HandleInteractiveComponent ¶
func (h HTTPHandler) HandleInteractiveComponent(w http.ResponseWriter, r *http.Request)
func (HTTPHandler) HandleSuggestion ¶
func (h HTTPHandler) HandleSuggestion(w http.ResponseWriter, r *http.Request)
type InmemoryStore ¶
type InmemoryStore struct {
// contains filtered or unexported fields
}
func NewInmemoryStore ¶
func NewInmemoryStore() InmemoryStore
type ParamStore ¶
type PostTargets ¶
type PostTargets struct {
SlackPostTargets []SlackPostTarget
}
func RestorePostTargetFromDomainObject ¶
func RestorePostTargetFromDomainObject(s domain.PostTarget) PostTargets
func (PostTargets) Merge ¶
func (s PostTargets) Merge(t PostTargets) PostTargets
type Schedules ¶
type Schedules struct { WeekdayAndTimeSchedules []WeekdayAndTimeSchedule YearMonthDayScheduleExceptions []YearMonthDayScheduleException }
type SlackPostTarget ¶
type SlackPostTarget struct {
ChannelID string
}
type StoreValue ¶
type WeekdayAndTimeSchedule ¶
Source Files ¶
- answer.go
- answer_handle.go
- answer_print_fixed.go
- answer_request_input.go
- answerer_create.go
- gen.go
- http_handler.go
- http_handler_error.go
- http_handler_event.go
- http_handler_interactive_component.go
- http_handler_suggestion.go
- param_store.go
- post.go
- post_target.go
- questionnaire_add_answerer.go
- questionnaire_edit.go
- questionnaire_edit_handle.go
- questionnaire_edit_print_fixed.go
- questionnaire_edit_request_input.go
- schedule.go
- slack_accessor_gen.go
- slack_constructor_gen.go
Click to show internal directories.
Click to hide internal directories.