view

package
v0.0.0-...-013d6bb Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AddEventDayActionId = "add_event_day"
View Source
const AddEventDayInputBlock = "add_event_day_input_block"
View Source
const AddEventHoursActionId = "add_event_hour"
View Source
const AddEventHoursInputBlock = "add_event_hours_input_block"
View Source
const AddEventMinsActionId = "add_event_mins"
View Source
const AddEventMinsInputBlock = "add_event_mins_input_block"
View Source
const AddEventTitleActionId = "add_event_title"
View Source
const AddEventTitleInputBlock = "add_event_title_input_block"
View Source
const AddGoalActionId = "add_goal"
View Source
const AddGoalCategoryActionId = "add_goal_category"
View Source
const AddGoalCategoryInputBlock = "add_goal_category_input_block"
View Source
const AddGoalInputBlock = "add_goal_input_block"
View Source
const EditEventsActionId = "edit_events"
View Source
const EditEventsTitle = "bZapp - Edit Events"
View Source
const EditGoalsActionId = "edit_goals"
View Source
const EditGoalsTitle = "bZapp - Edit Goals"
View Source
const EventsHeader = "Events"
View Source
const GoalsHeader = "Goals"
View Source
const MondayEventsHeader = "Monday"
View Source
const RemoveEventActionId = "remove_event"
View Source
const RemoveGoalActionId = "remove_goal"
View Source
const TodayEventsHeader = "Today"
View Source
const TodayOptionValue = "today"
View Source
const TomorrowEventsHeader = "Tomorrow"
View Source
const TomorrowOptionValue = "tomorrow"

Variables

View Source
var GoalCategories = []string{"Customer Questions?", "Team Needs", "Learnings", "Questions?", "Other"}
View Source
var NoEventYetSection = []slack.Block{slack.NewSectionBlock(slack.NewTextBlockObject(slack.MarkdownType, "_No events yet_", false, false), nil, nil)}
View Source
var NoGoalsYetSection = []slack.Block{slack.NewSectionBlock(slack.NewTextBlockObject(slack.MarkdownType, "_No goals yet_", false, false), nil, nil)}

Functions

func BuildNewEvent

func BuildNewEvent(index int, values map[string]map[string]slack.BlockAction) *model.Event

func BuildNewGoalSectionBlock

func BuildNewGoalSectionBlock(index int, values map[string]map[string]slack.BlockAction) (string, string)

func DailySummaryMessage

func DailySummaryMessage(currentModel *model.Model) *slack.Message

func NewEditEventsModal

func NewEditEventsModal(updatedModel *model.Model, updatedMetadata *model.Metadata) *slack.ModalViewRequest

func NewEditGoalsModal

func NewEditGoalsModal(updatedModel *model.Model, updatedMetadata *model.Metadata) *slack.ModalViewRequest

func NewErrorModal

func NewErrorModal(errorMessage string) *slack.ModalViewRequest

func NewSummaryModal

func NewSummaryModal(updatedModel *model.Model, updatedMetadata *model.Metadata) slack.ModalViewRequest

Types

type ResponseUrl

type ResponseUrl struct {
	BlockId     string `json:"block_id"`
	ActionId    string `json:"action_id"`
	ChannelId   string `json:"channel_id"`
	ResponseUrl string `json:"response_url"`
}

Jump to

Keyboard shortcuts

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