test

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: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Add2ndGoalSubmissionPayload = slack.InteractionCallback{
	Type: "view_submission",
	View: slack.View{
		Title: &slack.TextBlockObject{Text: "bZapp - Edit Goals"},
		State: &slack.ViewState{Values: map[string]map[string]slack.BlockAction{
			"add_goal_category_input_block-7": {"add_goal_category": slack.BlockAction{SelectedOption: slack.OptionBlockObject{Value: "Questions?"}}},
			"add_goal_input_block-7":          {"add_goal": slack.BlockAction{Value: "adsf"}},
		}},
		PrivateMetadata: `{"channel_id":"add_2nd_goal_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}
View Source
var AddEventSubmissionPayload = slack.InteractionCallback{
	Type: "view_submission",
	View: slack.View{
		Title: &slack.TextBlockObject{Text: "bZapp - Edit Events"},
		State: &slack.ViewState{Values: map[string]map[string]slack.BlockAction{
			"add_event_title_input_block-4": {"add_event_title": slack.BlockAction{Value: "sd"}},
			"add_event_day_input_block-4":   {"add_event_day": slack.BlockAction{SelectedOption: slack.OptionBlockObject{Value: "today"}}},
			"add_event_hours_input_block-4": {"add_event_hour": slack.BlockAction{SelectedOption: slack.OptionBlockObject{Text: &slack.TextBlockObject{Text: "1 PM"}}}},
			"add_event_mins_input_block-4":  {"add_event_mins": slack.BlockAction{SelectedOption: slack.OptionBlockObject{Text: &slack.TextBlockObject{Text: "15"}}}},
		}},
		PrivateMetadata: `{"channel_id":"add_event_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}
View Source
var AddGoalSubmissionPayload = slack.InteractionCallback{
	Type: "view_submission",
	View: slack.View{
		Title: &slack.TextBlockObject{Text: "bZapp - Edit Goals"},
		State: &slack.ViewState{Values: map[string]map[string]slack.BlockAction{
			"add_goal_category_input_block-6": {"add_goal_category": slack.BlockAction{SelectedOption: slack.OptionBlockObject{Value: "Team Needs"}}},
			"add_goal_input_block-6":          {"add_goal": slack.BlockAction{Value: "lskfd"}},
		}},
		PrivateMetadata: `{"channel_id":"add_goal_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}
View Source
var CloseEditEventsPayload = slack.InteractionCallback{
	Type: "view_closed",
	View: slack.View{
		ID:              "V01CMKMUWUS",
		RootViewID:      "V01DBEZ35GQ",
		ExternalID:      "externalOd",
		Title:           &slack.TextBlockObject{Text: "bZapp - Edit Events"},
		PrivateMetadata: `{"channel_id":"close_edit_events_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
	ViewSubmissionCallback: slack.ViewSubmissionCallback{Hash: "close_events_hash"},
}
View Source
var CloseEditGoalsPayload = slack.InteractionCallback{
	Type: "view_closed",
	View: slack.View{
		ID:              "V01DBFTR588",
		RootViewID:      "V01DBEZ35GQ",
		ExternalID:      "Close_goals_externalId",
		Title:           &slack.TextBlockObject{Text: "bZapp - Edit Goals"},
		PrivateMetadata: `{"channel_id":"close_edit_goals_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
	ViewSubmissionCallback: slack.ViewSubmissionCallback{Hash: "close_goals_hash"},
}
View Source
var EditEventsActionButtonPayload = slack.InteractionCallback{
	Type:      "block_actions",
	TriggerID: "Trigger",
	ActionCallback: slack.ActionCallbacks{
		BlockActions: []*slack.BlockAction{{
			ActionID: "edit_events",
		}},
	},
	View: slack.View{
		PrivateMetadata: `{"channel_id":"open_edit_events_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}
View Source
var EditGoalsActionButtonPayload = slack.InteractionCallback{
	Type:      "block_actions",
	TriggerID: "Edit Goals Trigger",
	ActionCallback: slack.ActionCallbacks{
		BlockActions: []*slack.BlockAction{{
			ActionID: "edit_goals",
		}},
	},
	View: slack.View{
		PrivateMetadata: `{"channel_id":"open_edit_events_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}
View Source
var RemoveEventActionPayload = slack.InteractionCallback{
	Type: "block_actions",
	ActionCallback: slack.ActionCallbacks{
		BlockActions: []*slack.BlockAction{{
			ActionID: "remove_event",
			Value:    "remove_today_YUBFMb",
			BlockID:  "YUBFMb",
		}},
	},
	View: slack.View{
		ID:              "V01CMKMUWUS",
		ExternalID:      "outsideId",
		PrivateMetadata: `{"channel_id":"remove_event_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
	ViewSubmissionCallback: slack.ViewSubmissionCallback{Hash: "cornbeef"},
}
View Source
var RemoveGoalActionPayload = slack.InteractionCallback{
	Type: "block_actions",
	ActionCallback: slack.ActionCallbacks{
		BlockActions: []*slack.BlockAction{{
			ActionID: "remove_goal",
			Value:    "remove_Questions?_GqrOzx",
			BlockID:  "GqrOzx",
		}},
	},
	View: slack.View{
		ID:              "V01DBFTR588",
		ExternalID:      "remove_goal_outsideId",
		PrivateMetadata: `{"channel_id":"remove_goal_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
	ViewSubmissionCallback: slack.ViewSubmissionCallback{Hash: "remove_goal_hash"},
}
View Source
var SubmitPayload = slack.InteractionCallback{
	Type: "view_submission",
	View: slack.View{
		Title:           &slack.TextBlockObject{Text: "bZapp"},
		PrivateMetadata: `{"channel_id":"send_message_channel_id","response_url":"https://hooks.slack.com/commands/T7NS02BFB/1307783467168/Gvz9lFVBwn9xo8TweP2vJHsP"}`,
	},
}

Functions

func GetItemInput

func GetItemInput(id string) *dynamodb.GetItemInput

func GetItemOutput

func GetItemOutput(id string, modelToReturn *model.Model) *dynamodb.GetItemOutput

func MakePayload

func MakePayload(callback slack.InteractionCallback) string

func ParseUrl

func ParseUrl(urlString string) *url.URL

func PutItemInput

func PutItemInput(id string, modelToSave *model.Model) *dynamodb.PutItemInput

func ReadFile

func ReadFile(t *testing.T, name string) string

func SuccessResponse

func SuccessResponse(response string) *http.Response

func UrlEncode

func UrlEncode(i interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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