Documentation ¶
Index ¶
- Constants
- Variables
- func CanStartTrialLicense(userID string, pluginAPI *pluginapi.Client) error
- func HandleErrorWithCode(logger logrus.FieldLogger, w http.ResponseWriter, code int, ...)
- func LogRequest(next http.Handler) http.Handler
- func MattermostAuthorizationRequired(next http.Handler) http.Handler
- func ReturnJSON(w http.ResponseWriter, pointerToObject interface{}, httpStatus int)
- type ActionResolver
- type ActionsHandler
- type BotHandler
- type CategoryHandler
- type ChecklistItemResolver
- type ChecklistResolver
- type Context
- type DigestSenderParams
- type ErrorHandler
- func (h *ErrorHandler) HandleError(w http.ResponseWriter, logger logrus.FieldLogger, internalErr error)
- func (h *ErrorHandler) HandleErrorWithCode(w http.ResponseWriter, logger logrus.FieldLogger, code int, ...)
- func (h *ErrorHandler) PermissionsCheck(w http.ResponseWriter, logger logrus.FieldLogger, checkOutput error) bool
- type EventData
- type GraphQLContext
- type GraphQLHandler
- type Handler
- type MetricConfigResolver
- type PageInfoResolver
- type PlaybookHandler
- type PlaybookResolver
- func (r *PlaybookResolver) ActiveRuns() int32
- func (r *PlaybookResolver) ChannelMode(ctx context.Context) string
- func (r *PlaybookResolver) Checklists() []*ChecklistResolver
- func (r *PlaybookResolver) DeleteAt() float64
- func (r *PlaybookResolver) IsFavorite(ctx context.Context) (bool, error)
- func (r *PlaybookResolver) LastRunAt() float64
- func (r *PlaybookResolver) Metrics() []*MetricConfigResolver
- func (r *PlaybookResolver) NumRuns() int32
- func (r *PlaybookResolver) ReminderTimerDefaultSeconds() float64
- func (r *PlaybookResolver) RetrospectiveReminderIntervalSeconds() float64
- type PlaybookRootResolver
- func (r *PlaybookRootResolver) AddMetric(ctx context.Context, args struct{ ... }) (string, error)
- func (r *PlaybookRootResolver) AddPlaybookMember(ctx context.Context, args struct{ ... }) (string, error)
- func (r *PlaybookRootResolver) DeleteMetric(ctx context.Context, args struct{ ... }) (string, error)
- func (r *PlaybookRootResolver) Playbook(ctx context.Context, args struct{ ... }) (*PlaybookResolver, error)
- func (r *PlaybookRootResolver) Playbooks(ctx context.Context, args struct{ ... }) ([]*PlaybookResolver, error)
- func (r *PlaybookRootResolver) RemovePlaybookMember(ctx context.Context, args struct{ ... }) (string, error)
- func (r *PlaybookRootResolver) UpdateMetric(ctx context.Context, args struct{ ... }) (string, error)
- func (r *PlaybookRootResolver) UpdatePlaybook(ctx context.Context, args struct{ ... }) (string, error)
- type PlaybookRunHandler
- type PlaybookSiteStats
- type PlaybookStats
- type RootResolver
- type RunConnectionResolver
- type RunEdgeResolver
- type RunResolver
- func (r *RunResolver) Checklists() []*ChecklistResolver
- func (r *RunResolver) CreateAt() float64
- func (r *RunResolver) EndAt() float64
- func (r *RunResolver) Followers(ctx context.Context) ([]string, error)
- func (r *RunResolver) IsFavorite(ctx context.Context) (bool, error)
- func (r *RunResolver) LastStatusUpdateAt() float64
- func (r *RunResolver) LastUpdatedAt(ctx context.Context) float64
- func (r *RunResolver) NumTasks() int32
- func (r *RunResolver) NumTasksClosed() int32
- func (r *RunResolver) Playbook(ctx context.Context) (*PlaybookResolver, error)
- func (r *RunResolver) PreviousReminder() float64
- func (r *RunResolver) ReminderTimerDefaultSeconds() float64
- func (r *RunResolver) RetrospectivePublishedAt() float64
- func (r *RunResolver) RetrospectiveReminderIntervalSeconds() float64
- func (r *RunResolver) StatusPosts(ctx context.Context) ([]*StatusPostResolver, error)
- func (r *RunResolver) SummaryModifiedAt() float64
- func (r *RunResolver) TimelineEvents(ctx context.Context) ([]*TimelineEventResolver, error)
- func (r *RunResolver) Type() string
- type RunRootResolver
- func (r *RunRootResolver) AddRunParticipants(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) ChangeRunOwner(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) RemoveRunParticipants(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) Run(ctx context.Context, args struct{ ... }) (*RunResolver, error)
- func (r *RunRootResolver) Runs(ctx context.Context, args struct{ ... }) (*RunConnectionResolver, error)
- func (r *RunRootResolver) SetRunFavorite(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) UpdatePlaybookFavorite(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) UpdateRun(ctx context.Context, args struct{ ... }) (string, error)
- func (r *RunRootResolver) UpdateRunTaskActions(ctx context.Context, args struct{ ... }) (string, error)
- type RunUpdates
- type SettingsHandler
- type SignalHandler
- type StatsHandler
- type StatusPostResolver
- type TaskActionResolver
- type TelemetryHandler
- type TimelineEventResolver
- type TrackerPayload
- type TriggerResolver
- type UpdateChecklist
- type UpdateChecklistItem
- func (ci *UpdateChecklistItem) GetAssigneeID() string
- func (ci *UpdateChecklistItem) SetAssigneeModified(modified int64)
- func (ci *UpdateChecklistItem) SetCommandLastRun(lastRun int64)
- func (ci *UpdateChecklistItem) SetState(state string)
- func (ci *UpdateChecklistItem) SetStateModified(modified int64)
Constants ¶
const ( MetricChartPeriod = 10 MetricRollingAveragePeriod = 10 )
const MaxRequestSize = 5 * 1024 * 1024 // 5MB
MaxRequestSize is the size limit for any incoming request The default limit set by mattermost-server is the configured max file size, and it sometimes isn't small enough to prevent some scenarios.
This is important to prevent huge payloads from being sent that could end in a bigger problem.
If an endpoint needs a smaller limit than this one, it could be solved by adding their own limit BEFORE reading the request body `r.Body = http.MaxBytesReader(w, r.Body, MaxRequestSize)`
const SettingsKey = "global_settings"
Variables ¶
var GraphiqlPage []byte
GraphiqlPage is the html base code for the graphiQL query runner
var SchemaFile string
Functions ¶
func CanStartTrialLicense ¶
func HandleErrorWithCode ¶
func HandleErrorWithCode(logger logrus.FieldLogger, w http.ResponseWriter, code int, publicErrorMsg string, internalErr error)
HandleErrorWithCode logs the internal error and sends the public facing error message as JSON in a response with the provided code.
func LogRequest ¶ added in v1.34.0
LogRequest logs each request, attaching a unique request_id to the request context to trace logs throughout the request lifecycle.
func MattermostAuthorizationRequired ¶
MattermostAuthorizationRequired checks if request is authorized.
func ReturnJSON ¶
func ReturnJSON(w http.ResponseWriter, pointerToObject interface{}, httpStatus int)
ReturnJSON writes the given pointerToObject as json with the provided httpStatus
Types ¶
type ActionResolver ¶ added in v1.34.0
func (*ActionResolver) Payload ¶ added in v1.34.0
func (r *ActionResolver) Payload() string
func (*ActionResolver) Type ¶ added in v1.34.0
func (r *ActionResolver) Type() string
type ActionsHandler ¶ added in v1.26.0
type ActionsHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewActionsHandler ¶ added in v1.26.0
func NewActionsHandler(router *mux.Router, channelActionsService app.ChannelActionService, pluginAPI *pluginapi.Client, permissions *app.PermissionsService) *ActionsHandler
func (*ActionsHandler) ValidateChannelAction ¶ added in v1.39.1
func (a *ActionsHandler) ValidateChannelAction(c *Context, w http.ResponseWriter, action *app.GenericChannelAction, userID string) error
type BotHandler ¶
type BotHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewBotHandler ¶
func NewBotHandler(router *mux.Router, api *pluginapi.Client, poster bot.Poster, config config.Service, playbookRunService app.PlaybookRunService, userInfoStore app.UserInfoStore) *BotHandler
type CategoryHandler ¶ added in v1.31.0
type CategoryHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewCategoryHandler ¶ added in v1.31.0
func NewCategoryHandler(router *mux.Router, api *pluginapi.Client, categoryService app.CategoryService, playbookService app.PlaybookService, playbookRunService app.PlaybookRunService) *CategoryHandler
type ChecklistItemResolver ¶ added in v1.28.0
type ChecklistItemResolver struct {
app.ChecklistItem
}
func (*ChecklistItemResolver) AssigneeModified ¶ added in v1.28.0
func (r *ChecklistItemResolver) AssigneeModified() float64
func (*ChecklistItemResolver) CommandLastRun ¶ added in v1.28.0
func (r *ChecklistItemResolver) CommandLastRun() float64
func (*ChecklistItemResolver) DueDate ¶ added in v1.28.0
func (r *ChecklistItemResolver) DueDate() float64
func (*ChecklistItemResolver) StateModified ¶ added in v1.28.0
func (r *ChecklistItemResolver) StateModified() float64
func (*ChecklistItemResolver) TaskActions ¶ added in v1.34.0
func (r *ChecklistItemResolver) TaskActions() []*TaskActionResolver
type ChecklistResolver ¶ added in v1.28.0
func (*ChecklistResolver) Items ¶ added in v1.28.0
func (r *ChecklistResolver) Items() []*ChecklistItemResolver
type DigestSenderParams ¶ added in v1.34.0
type DigestSenderParams struct {
// contains filtered or unexported fields
}
type ErrorHandler ¶
type ErrorHandler struct { }
func (*ErrorHandler) HandleError ¶
func (h *ErrorHandler) HandleError(w http.ResponseWriter, logger logrus.FieldLogger, internalErr error)
HandleError logs the internal error and sends a generic error as JSON in a 500 response.
func (*ErrorHandler) HandleErrorWithCode ¶
func (h *ErrorHandler) HandleErrorWithCode(w http.ResponseWriter, logger logrus.FieldLogger, code int, publicErrorMsg string, internalErr error)
HandleErrorWithCode logs the internal error and sends the public facing error message as JSON in a response with the provided code.
func (*ErrorHandler) PermissionsCheck ¶
func (h *ErrorHandler) PermissionsCheck(w http.ResponseWriter, logger logrus.FieldLogger, checkOutput error) bool
PermissionsCheck handles the output of a permission check Automatically does the proper error handling. Returns true if the check passed and false on failure. Correct use is: if !h.PermissionsCheck(w, check) { return }
type EventData ¶ added in v1.34.0
type EventData struct { Name string Type app.TelemetryType Properties map[string]interface{} }
type GraphQLContext ¶ added in v1.34.0
type GraphQLContext struct {
// contains filtered or unexported fields
}
type GraphQLHandler ¶ added in v1.28.0
type GraphQLHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewGraphQLHandler ¶ added in v1.28.0
func NewGraphQLHandler( router *mux.Router, playbookService app.PlaybookService, playbookRunService app.PlaybookRunService, categoryService app.CategoryService, api *pluginapi.Client, configService config.Service, permissions *app.PermissionsService, playbookStore app.PlaybookStore, runStore app.PlaybookRunStore, licenceChecker app.LicenseChecker, ) *GraphQLHandler
type Handler ¶
type Handler struct { *ErrorHandler APIRouter *mux.Router // contains filtered or unexported fields }
Handler Root API handler.
func NewHandler ¶
NewHandler constructs a new handler.
type MetricConfigResolver ¶ added in v1.28.0
type MetricConfigResolver struct {
app.PlaybookMetricConfig
}
func (*MetricConfigResolver) Target ¶ added in v1.28.0
func (r *MetricConfigResolver) Target() *int32
type PageInfoResolver ¶ added in v1.34.0
type PlaybookHandler ¶
type PlaybookHandler struct { *ErrorHandler // contains filtered or unexported fields }
PlaybookHandler is the API handler.
func NewPlaybookHandler ¶
func NewPlaybookHandler(router *mux.Router, playbookService app.PlaybookService, api *pluginapi.Client, configService config.Service, permissions *app.PermissionsService) *PlaybookHandler
NewPlaybookHandler returns a new playbook api handler
type PlaybookResolver ¶ added in v1.28.0
func (*PlaybookResolver) ActiveRuns ¶ added in v1.34.0
func (r *PlaybookResolver) ActiveRuns() int32
func (*PlaybookResolver) ChannelMode ¶ added in v1.34.0
func (r *PlaybookResolver) ChannelMode(ctx context.Context) string
func (*PlaybookResolver) Checklists ¶ added in v1.28.0
func (r *PlaybookResolver) Checklists() []*ChecklistResolver
func (*PlaybookResolver) DeleteAt ¶ added in v1.28.0
func (r *PlaybookResolver) DeleteAt() float64
func (*PlaybookResolver) IsFavorite ¶ added in v1.31.0
func (r *PlaybookResolver) IsFavorite(ctx context.Context) (bool, error)
func (*PlaybookResolver) LastRunAt ¶ added in v1.34.0
func (r *PlaybookResolver) LastRunAt() float64
func (*PlaybookResolver) Metrics ¶ added in v1.28.0
func (r *PlaybookResolver) Metrics() []*MetricConfigResolver
func (*PlaybookResolver) NumRuns ¶ added in v1.34.0
func (r *PlaybookResolver) NumRuns() int32
func (*PlaybookResolver) ReminderTimerDefaultSeconds ¶ added in v1.28.0
func (r *PlaybookResolver) ReminderTimerDefaultSeconds() float64
func (*PlaybookResolver) RetrospectiveReminderIntervalSeconds ¶ added in v1.28.0
func (r *PlaybookResolver) RetrospectiveReminderIntervalSeconds() float64
type PlaybookRootResolver ¶ added in v1.34.0
type PlaybookRootResolver struct { }
RunMutationCollection hold all mutation functions for a playbookRun
func (*PlaybookRootResolver) AddPlaybookMember ¶ added in v1.34.0
func (*PlaybookRootResolver) DeleteMetric ¶ added in v1.34.0
func (*PlaybookRootResolver) Playbook ¶ added in v1.34.0
func (r *PlaybookRootResolver) Playbook(ctx context.Context, args struct { ID string }) (*PlaybookResolver, error)
func (*PlaybookRootResolver) RemovePlaybookMember ¶ added in v1.34.0
func (*PlaybookRootResolver) UpdateMetric ¶ added in v1.34.0
func (*PlaybookRootResolver) UpdatePlaybook ¶ added in v1.34.0
func (r *PlaybookRootResolver) UpdatePlaybook(ctx context.Context, args struct { ID string Updates struct { Title *string Description *string Public *bool CreatePublicPlaybookRun *bool ReminderMessageTemplate *string ReminderTimerDefaultSeconds *float64 StatusUpdateEnabled *bool InvitedUserIDs *[]string InvitedGroupIDs *[]string InviteUsersEnabled *bool DefaultOwnerID *string DefaultOwnerEnabled *bool BroadcastChannelIDs *[]string BroadcastEnabled *bool WebhookOnCreationURLs *[]string WebhookOnCreationEnabled *bool MessageOnJoin *string MessageOnJoinEnabled *bool RetrospectiveReminderIntervalSeconds *float64 RetrospectiveTemplate *string RetrospectiveEnabled *bool WebhookOnStatusUpdateURLs *[]string WebhookOnStatusUpdateEnabled *bool SignalAnyKeywords *[]string SignalAnyKeywordsEnabled *bool CategorizeChannelEnabled *bool CategoryName *string RunSummaryTemplateEnabled *bool RunSummaryTemplate *string ChannelNameTemplate *string Checklists *[]UpdateChecklist CreateChannelMemberOnNewParticipant *bool RemoveChannelMemberOnRemovedParticipant *bool ChannelID *string ChannelMode *string } }) (string, error)
type PlaybookRunHandler ¶
type PlaybookRunHandler struct { *ErrorHandler // contains filtered or unexported fields }
PlaybookRunHandler is the API handler.
func NewPlaybookRunHandler ¶
func NewPlaybookRunHandler( router *mux.Router, playbookRunService app.PlaybookRunService, playbookService app.PlaybookService, permissions *app.PermissionsService, licenseChecker app.LicenseChecker, api *pluginapi.Client, poster bot.Poster, configService config.Service, ) *PlaybookRunHandler
NewPlaybookRunHandler Creates a new Plugin API handler.
type PlaybookSiteStats ¶ added in v1.28.0
type PlaybookStats ¶
type PlaybookStats struct { RunsInProgress int `json:"runs_in_progress"` ParticipantsActive int `json:"participants_active"` RunsFinishedPrev30Days int `json:"runs_finished_prev_30_days"` RunsFinishedPercentageChange int `json:"runs_finished_percentage_change"` RunsStartedPerWeek []int `json:"runs_started_per_week"` RunsStartedPerWeekTimes [][]int64 `json:"runs_started_per_week_times"` ActiveRunsPerDay []int `json:"active_runs_per_day"` ActiveRunsPerDayTimes [][]int64 `json:"active_runs_per_day_times"` ActiveParticipantsPerDay []int `json:"active_participants_per_day"` ActiveParticipantsPerDayTimes [][]int64 `json:"active_participants_per_day_times"` MetricOverallAverage []null.Int `json:"metric_overall_average"` MetricRollingAverage []null.Int `json:"metric_rolling_average"` MetricRollingAverageChange []null.Int `json:"metric_rolling_average_change"` MetricValueRange [][]int64 `json:"metric_value_range"` MetricRollingValues [][]int64 `json:"metric_rolling_values"` LastXRunNames []string `json:"last_x_run_names"` }
type RootResolver ¶ added in v1.28.0
type RootResolver struct { RunRootResolver PlaybookRootResolver }
type RunConnectionResolver ¶ added in v1.34.0
type RunConnectionResolver struct {
// contains filtered or unexported fields
}
func (*RunConnectionResolver) Edges ¶ added in v1.34.0
func (r *RunConnectionResolver) Edges() []*RunEdgeResolver
func (*RunConnectionResolver) PageInfo ¶ added in v1.34.0
func (r *RunConnectionResolver) PageInfo() *PageInfoResolver
func (*RunConnectionResolver) TotalCount ¶ added in v1.34.0
func (r *RunConnectionResolver) TotalCount() int32
type RunEdgeResolver ¶ added in v1.34.0
type RunEdgeResolver struct {
// contains filtered or unexported fields
}
func (*RunEdgeResolver) Cursor ¶ added in v1.34.0
func (r *RunEdgeResolver) Cursor() string
func (*RunEdgeResolver) Node ¶ added in v1.34.0
func (r *RunEdgeResolver) Node() *RunResolver
type RunResolver ¶ added in v1.31.0
type RunResolver struct {
app.PlaybookRun
}
func (*RunResolver) Checklists ¶ added in v1.34.0
func (r *RunResolver) Checklists() []*ChecklistResolver
func (*RunResolver) CreateAt ¶ added in v1.34.0
func (r *RunResolver) CreateAt() float64
func (*RunResolver) EndAt ¶ added in v1.34.0
func (r *RunResolver) EndAt() float64
func (*RunResolver) Followers ¶ added in v1.36.0
func (r *RunResolver) Followers(ctx context.Context) ([]string, error)
func (*RunResolver) IsFavorite ¶ added in v1.31.0
func (r *RunResolver) IsFavorite(ctx context.Context) (bool, error)
func (*RunResolver) LastStatusUpdateAt ¶ added in v1.34.0
func (r *RunResolver) LastStatusUpdateAt() float64
func (*RunResolver) LastUpdatedAt ¶ added in v1.34.0
func (r *RunResolver) LastUpdatedAt(ctx context.Context) float64
func (*RunResolver) NumTasks ¶ added in v1.36.0
func (r *RunResolver) NumTasks() int32
NumTasks is a computed attribute (not stored in database) which returns the number of total tasks in a playbook run:
func (*RunResolver) NumTasksClosed ¶ added in v1.36.0
func (r *RunResolver) NumTasksClosed() int32
NumTasksClosed is a computed attribute (not stored in database) which returns the number of tasks closed in a playbook run:
func (*RunResolver) Playbook ¶ added in v1.34.0
func (r *RunResolver) Playbook(ctx context.Context) (*PlaybookResolver, error)
func (*RunResolver) PreviousReminder ¶ added in v1.34.0
func (r *RunResolver) PreviousReminder() float64
func (*RunResolver) ReminderTimerDefaultSeconds ¶ added in v1.34.0
func (r *RunResolver) ReminderTimerDefaultSeconds() float64
func (*RunResolver) RetrospectivePublishedAt ¶ added in v1.34.0
func (r *RunResolver) RetrospectivePublishedAt() float64
func (*RunResolver) RetrospectiveReminderIntervalSeconds ¶ added in v1.34.0
func (r *RunResolver) RetrospectiveReminderIntervalSeconds() float64
func (*RunResolver) StatusPosts ¶ added in v1.34.0
func (r *RunResolver) StatusPosts(ctx context.Context) ([]*StatusPostResolver, error)
func (*RunResolver) SummaryModifiedAt ¶ added in v1.34.0
func (r *RunResolver) SummaryModifiedAt() float64
func (*RunResolver) TimelineEvents ¶ added in v1.34.0
func (r *RunResolver) TimelineEvents(ctx context.Context) ([]*TimelineEventResolver, error)
func (*RunResolver) Type ¶ added in v1.36.0
func (r *RunResolver) Type() string
type RunRootResolver ¶ added in v1.34.0
type RunRootResolver struct { }
RunRootResolver hold all queries and mutations for a playbookRun
func (*RunRootResolver) AddRunParticipants ¶ added in v1.34.0
func (*RunRootResolver) ChangeRunOwner ¶ added in v1.34.0
func (*RunRootResolver) RemoveRunParticipants ¶ added in v1.34.0
func (*RunRootResolver) Run ¶ added in v1.34.0
func (r *RunRootResolver) Run(ctx context.Context, args struct { ID string `url:"id,omitempty"` }) (*RunResolver, error)
func (*RunRootResolver) SetRunFavorite ¶ added in v1.34.0
func (*RunRootResolver) UpdatePlaybookFavorite ¶ added in v1.36.0
func (*RunRootResolver) UpdateRun ¶ added in v1.34.0
func (r *RunRootResolver) UpdateRun(ctx context.Context, args struct { ID string Updates RunUpdates }) (string, error)
func (*RunRootResolver) UpdateRunTaskActions ¶ added in v1.34.0
func (r *RunRootResolver) UpdateRunTaskActions(ctx context.Context, args struct { RunID string ChecklistNum float64 ItemNum float64 TaskActions *[]app.TaskAction }) (string, error)
type RunUpdates ¶ added in v1.34.0
type RunUpdates struct { Name *string Summary *string ChannelID *string CreateChannelMemberOnNewParticipant *bool RemoveChannelMemberOnRemovedParticipant *bool StatusUpdateBroadcastChannelsEnabled *bool StatusUpdateBroadcastWebhooksEnabled *bool BroadcastChannelIDs *[]string WebhookOnStatusUpdateURLs *[]string }
type SettingsHandler ¶
type SettingsHandler struct { *ErrorHandler // contains filtered or unexported fields }
SettingsHandler is the API handler.
func NewSettingsHandler ¶
func NewSettingsHandler(router *mux.Router, api *pluginapi.Client, configService config.Service) *SettingsHandler
NewSettingsHandler returns a new settings api handler
type SignalHandler ¶
type SignalHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewSignalHandler ¶
func NewSignalHandler(router *mux.Router, api *pluginapi.Client, playbookRunService app.PlaybookRunService, playbookService app.PlaybookService, keywordsThreadIgnorer app.KeywordsThreadIgnorer) *SignalHandler
type StatsHandler ¶
type StatsHandler struct { *ErrorHandler // contains filtered or unexported fields }
func NewStatsHandler ¶
func NewStatsHandler(router *mux.Router, api *pluginapi.Client, statsStore *sqlstore.StatsStore, playbookService app.PlaybookService, permissions *app.PermissionsService, licenseChecker app.LicenseChecker) *StatsHandler
type StatusPostResolver ¶ added in v1.34.0
type StatusPostResolver struct {
app.StatusPost
}
func (*StatusPostResolver) CreateAt ¶ added in v1.34.0
func (r *StatusPostResolver) CreateAt() float64
func (*StatusPostResolver) DeleteAt ¶ added in v1.34.0
func (r *StatusPostResolver) DeleteAt() float64
type TaskActionResolver ¶ added in v1.34.0
type TaskActionResolver struct {
app.TaskAction
}
func (*TaskActionResolver) Actions ¶ added in v1.34.0
func (r *TaskActionResolver) Actions() []*ActionResolver
func (*TaskActionResolver) Trigger ¶ added in v1.34.0
func (r *TaskActionResolver) Trigger() *TriggerResolver
type TelemetryHandler ¶
type TelemetryHandler struct { *ErrorHandler // contains filtered or unexported fields }
TelemetryHandler is the API handler.
func NewTelemetryHandler ¶
func NewTelemetryHandler( router *mux.Router, playbookRunService app.PlaybookRunService, api *pluginapi.Client, playbookRunTelemetry app.PlaybookRunTelemetry, playbookService app.PlaybookService, playbookTelemetry app.PlaybookTelemetry, genericTelemetry app.GenericTelemetry, botTelemetry bot.Telemetry, permissions *app.PermissionsService, ) *TelemetryHandler
NewTelemetryHandler Creates a new Plugin API handler.
type TimelineEventResolver ¶ added in v1.34.0
type TimelineEventResolver struct {
app.TimelineEvent
}
func (*TimelineEventResolver) CreateAt ¶ added in v1.34.0
func (r *TimelineEventResolver) CreateAt() float64
func (*TimelineEventResolver) DeleteAt ¶ added in v1.34.0
func (r *TimelineEventResolver) DeleteAt() float64
func (*TimelineEventResolver) EventType ¶ added in v1.34.0
func (r *TimelineEventResolver) EventType() string
type TrackerPayload ¶
type TrackerPayload struct {
Action string `json:"action"`
}
type TriggerResolver ¶ added in v1.34.0
func (*TriggerResolver) Payload ¶ added in v1.34.0
func (r *TriggerResolver) Payload() string
func (*TriggerResolver) Type ¶ added in v1.34.0
func (r *TriggerResolver) Type() string
type UpdateChecklist ¶ added in v1.28.0
type UpdateChecklist struct { Title string `json:"title"` Items []UpdateChecklistItem `json:"items"` }
func (UpdateChecklist) GetItems ¶ added in v1.35.0
func (c UpdateChecklist) GetItems() []app.ChecklistItemCommon
type UpdateChecklistItem ¶ added in v1.28.0
type UpdateChecklistItem struct { Title string `json:"title"` State string `json:"state"` StateModified float64 `json:"state_modified"` AssigneeID string `json:"assignee_id"` AssigneeModified float64 `json:"assignee_modified"` Command string `json:"command"` CommandLastRun float64 `json:"command_last_run"` Description string `json:"description"` LastSkipped float64 `json:"delete_at"` DueDate float64 `json:"due_date"` TaskActions *[]app.TaskAction `json:"task_actions"` }
func (*UpdateChecklistItem) GetAssigneeID ¶ added in v1.35.0
func (ci *UpdateChecklistItem) GetAssigneeID() string
func (*UpdateChecklistItem) SetAssigneeModified ¶ added in v1.35.0
func (ci *UpdateChecklistItem) SetAssigneeModified(modified int64)
func (*UpdateChecklistItem) SetCommandLastRun ¶ added in v1.35.0
func (ci *UpdateChecklistItem) SetCommandLastRun(lastRun int64)
func (*UpdateChecklistItem) SetState ¶ added in v1.35.0
func (ci *UpdateChecklistItem) SetState(state string)
func (*UpdateChecklistItem) SetStateModified ¶ added in v1.35.0
func (ci *UpdateChecklistItem) SetStateModified(modified int64)
Source Files ¶
- actions.go
- api.go
- bot.go
- categories.go
- context.go
- error_handler.go
- graph_dataloader.go
- graphql.go
- graphql_loader_favorite.go
- graphql_loader_playbook.go
- graphql_loader_run.go
- graphql_playbook.go
- graphql_root.go
- graphql_root_playbook.go
- graphql_root_run.go
- graphql_run.go
- logger.go
- playbook_runs.go
- playbooks.go
- settings.go
- signal.go
- stats.go
- telemetry.go
- urls.go