graphqlapp

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert App

func (*Alert) AlertID

func (a *Alert) AlertID(ctx context.Context, raw *alert.Alert) (int, error)

func (*Alert) ID

func (a *Alert) ID(ctx context.Context, raw *alert.Alert) (string, error)

func (*Alert) PendingNotifications added in v0.29.0

func (a *Alert) PendingNotifications(ctx context.Context, obj *alert.Alert) ([]graphql2.AlertPendingNotification, error)

PendingNotifications returns a list of notifications that are waiting to be sent

func (*Alert) RecentEvents added in v0.23.0

func (*Alert) Service

func (a *Alert) Service(ctx context.Context, raw *alert.Alert) (*service.Service, error)

func (*Alert) State

func (a *Alert) State(ctx context.Context, raw *alert.Alert) (*alert.State, error)

func (*Alert) Status

func (a *Alert) Status(ctx context.Context, raw *alert.Alert) (graphql2.AlertStatus, error)

type AlertLogEntry added in v0.23.0

type AlertLogEntry App

func (*AlertLogEntry) ID added in v0.23.0

func (a *AlertLogEntry) ID(ctx context.Context, obj *alertlog.Entry) (int, error)

func (*AlertLogEntry) Message added in v0.23.0

func (a *AlertLogEntry) Message(ctx context.Context, obj *alertlog.Entry) (string, error)

func (*AlertLogEntry) State added in v0.25.0

func (*AlertLogEntry) Timestamp added in v0.23.0

func (a *AlertLogEntry) Timestamp(ctx context.Context, obj *alertlog.Entry) (*time.Time, error)

type AlertLogEntryState added in v0.25.0

type AlertLogEntryState App

type App

type App struct {
	DB             *sql.DB
	AuthBasicStore *basic.Store
	UserStore      *user.Store
	CMStore        contactmethod.Store
	NRStore        notificationrule.Store
	NCStore        notificationchannel.Store
	AlertStore     alert.Store
	AlertLogStore  alertlog.Store
	ServiceStore   service.Store
	FavoriteStore  favorite.Store
	PolicyStore    escalation.Store
	ScheduleStore  *schedule.Store
	CalSubStore    *calendarsubscription.Store
	RotationStore  rotation.Store
	OnCallStore    oncall.Store
	IntKeyStore    integrationkey.Store
	LabelStore     label.Store
	RuleStore      rule.Store
	OverrideStore  override.Store
	ConfigStore    *config.Store
	LimitStore     *limit.Store
	SlackStore     *slack.ChannelSender
	HeartbeatStore *heartbeat.Store
	NoticeStore    notice.Store

	NotificationManager notification.Manager

	AuthHandler *auth.Handler

	NotificationStore notification.Store
	Twilio            *twilio.Config

	TimeZoneStore *timezone.Store

	FormatDestFunc func(context.Context, notification.DestType, string) string
}

func (*App) Alert

func (a *App) Alert() graphql2.AlertResolver

func (*App) AlertLogEntry added in v0.23.0

func (a *App) AlertLogEntry() graphql2.AlertLogEntryResolver

func (*App) EscalationPolicy

func (a *App) EscalationPolicy() graphql2.EscalationPolicyResolver

func (*App) EscalationPolicyStep

func (a *App) EscalationPolicyStep() graphql2.EscalationPolicyStepResolver

func (*App) FindOneAlert

func (app *App) FindOneAlert(ctx context.Context, id int) (*alert.Alert, error)

func (*App) FindOneAlertState

func (app *App) FindOneAlertState(ctx context.Context, alertID int) (*alert.State, error)

func (*App) FindOneCM

func (app *App) FindOneCM(ctx context.Context, id string) (*contactmethod.ContactMethod, error)

FindOneCM will return a single contact method for the given id, using the contexts dataloader if enabled.

func (*App) FindOneHeartbeatMonitor added in v0.24.0

func (app *App) FindOneHeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)

func (*App) FindOneNotificationMessageStatus added in v0.25.0

func (app *App) FindOneNotificationMessageStatus(ctx context.Context, id string) (*notification.SendResult, error)

func (*App) FindOnePolicy

func (app *App) FindOnePolicy(ctx context.Context, id string) (*escalation.Policy, error)

func (*App) FindOneRotation

func (app *App) FindOneRotation(ctx context.Context, id string) (*rotation.Rotation, error)

func (*App) FindOneSchedule

func (app *App) FindOneSchedule(ctx context.Context, id string) (*schedule.Schedule, error)

func (*App) FindOneService

func (app *App) FindOneService(ctx context.Context, id string) (*service.Service, error)

func (*App) FindOneUser

func (app *App) FindOneUser(ctx context.Context, id string) (*user.User, error)

func (*App) Handler

func (a *App) Handler() http.Handler

func (*App) HeartbeatMonitor added in v0.24.0

func (a *App) HeartbeatMonitor() graphql2.HeartbeatMonitorResolver

func (*App) IntegrationKey

func (a *App) IntegrationKey() graphql2.IntegrationKeyResolver

func (*App) Mutation

func (a *App) Mutation() graphql2.MutationResolver

func (*App) OnCallNotificationRule added in v0.28.0

func (a *App) OnCallNotificationRule() graphql2.OnCallNotificationRuleResolver

func (*App) OnCallShift

func (a *App) OnCallShift() graphql2.OnCallShiftResolver

func (*App) PlayHandler

func (a *App) PlayHandler(w http.ResponseWriter, req *http.Request)

func (*App) Query

func (a *App) Query() graphql2.QueryResolver

func (*App) Rotation

func (a *App) Rotation() graphql2.RotationResolver

func (*App) Schedule

func (a *App) Schedule() graphql2.ScheduleResolver

func (*App) ScheduleRule

func (a *App) ScheduleRule() graphql2.ScheduleRuleResolver

func (*App) Service

func (a *App) Service() graphql2.ServiceResolver

func (*App) Target

func (a *App) Target() graphql2.TargetResolver

func (*App) TemporarySchedule added in v0.27.0

func (a *App) TemporarySchedule() graphql2.TemporaryScheduleResolver

func (*App) User

func (a *App) User() graphql2.UserResolver

func (*App) UserCalendarSubscription added in v0.25.0

func (a *App) UserCalendarSubscription() graphql2.UserCalendarSubscriptionResolver

func (*App) UserContactMethod added in v0.23.0

func (a *App) UserContactMethod() graphql2.UserContactMethodResolver

func (*App) UserNotificationRule

func (a *App) UserNotificationRule() graphql2.UserNotificationRuleResolver

func (*App) UserOverride

func (a *App) UserOverride() graphql2.UserOverrideResolver

func (*App) UserSession added in v0.26.0

func (a *App) UserSession() graphql2.UserSessionResolver

type ContactMethod added in v0.23.0

type ContactMethod App

func (*ContactMethod) FormattedValue added in v0.23.0

func (a *ContactMethod) FormattedValue(ctx context.Context, obj *contactmethod.ContactMethod) (string, error)

func (*ContactMethod) LastTestMessageState added in v0.26.0

func (*ContactMethod) LastVerifyMessageState added in v0.26.0

func (a *ContactMethod) LastVerifyMessageState(ctx context.Context, obj *contactmethod.ContactMethod) (*graphql2.NotificationState, error)

func (*ContactMethod) Value added in v0.28.0

type EscalationPolicy

type EscalationPolicy App

func (*EscalationPolicy) AssignedTo

func (ep *EscalationPolicy) AssignedTo(ctx context.Context, raw *escalation.Policy) ([]assignment.RawTarget, error)

func (*EscalationPolicy) IsFavorite added in v0.28.0

func (step *EscalationPolicy) IsFavorite(ctx context.Context, raw *escalation.Policy) (bool, error)

func (*EscalationPolicy) Notices added in v0.26.0

func (ep *EscalationPolicy) Notices(ctx context.Context, raw *escalation.Policy) ([]notice.Notice, error)

func (*EscalationPolicy) Steps

type EscalationPolicyStep

type EscalationPolicyStep App

func (*EscalationPolicyStep) EscalationPolicy

func (step *EscalationPolicyStep) EscalationPolicy(ctx context.Context, raw *escalation.Step) (*escalation.Policy, error)

func (*EscalationPolicyStep) Targets

type HeartbeatMonitor added in v0.24.0

type HeartbeatMonitor App

func (*HeartbeatMonitor) Href added in v0.24.0

func (*HeartbeatMonitor) TimeoutMinutes added in v0.24.0

func (a *HeartbeatMonitor) TimeoutMinutes(ctx context.Context, hb *heartbeat.Monitor) (int, error)

type IntegrationKey

type IntegrationKey App

func (*IntegrationKey) Href

func (*IntegrationKey) Type

type Mutation

type Mutation App

func (*Mutation) AddAuthSubject

func (a *Mutation) AddAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)

func (*Mutation) ClearTemporarySchedules added in v0.27.0

func (a *Mutation) ClearTemporarySchedules(ctx context.Context, input graphql2.ClearTemporarySchedulesInput) (bool, error)

func (*Mutation) CreateAlert added in v0.23.0

func (m *Mutation) CreateAlert(ctx context.Context, input graphql2.CreateAlertInput) (*alert.Alert, error)

func (*Mutation) CreateEscalationPolicy

func (m *Mutation) CreateEscalationPolicy(ctx context.Context, input graphql2.CreateEscalationPolicyInput) (pol *escalation.Policy, err error)

func (*Mutation) CreateEscalationPolicyStep

func (m *Mutation) CreateEscalationPolicyStep(ctx context.Context, input graphql2.CreateEscalationPolicyStepInput) (step *escalation.Step, err error)

func (*Mutation) CreateHeartbeatMonitor added in v0.24.0

func (m *Mutation) CreateHeartbeatMonitor(ctx context.Context, input graphql2.CreateHeartbeatMonitorInput) (*heartbeat.Monitor, error)

func (*Mutation) CreateIntegrationKey

func (m *Mutation) CreateIntegrationKey(ctx context.Context, input graphql2.CreateIntegrationKeyInput) (key *integrationkey.IntegrationKey, err error)

func (*Mutation) CreateRotation

func (m *Mutation) CreateRotation(ctx context.Context, input graphql2.CreateRotationInput) (result *rotation.Rotation, err error)

func (*Mutation) CreateSchedule

func (m *Mutation) CreateSchedule(ctx context.Context, input graphql2.CreateScheduleInput) (sched *schedule.Schedule, err error)

func (*Mutation) CreateService

func (m *Mutation) CreateService(ctx context.Context, input graphql2.CreateServiceInput) (result *service.Service, err error)

func (*Mutation) CreateUser added in v0.28.0

func (a *Mutation) CreateUser(ctx context.Context, input graphql2.CreateUserInput) (*user.User, error)

func (*Mutation) CreateUserCalendarSubscription added in v0.25.0

todo: return UserCalendarSubscription with generated url once endpoint has been created

func (*Mutation) CreateUserContactMethod

func (*Mutation) CreateUserOverride

func (m *Mutation) CreateUserOverride(ctx context.Context, input graphql2.CreateUserOverrideInput) (*override.UserOverride, error)

func (*Mutation) DebugCarrierInfo added in v0.25.0

func (a *Mutation) DebugCarrierInfo(ctx context.Context, input graphql2.DebugCarrierInfoInput) (*twilio.CarrierInfo, error)

func (*Mutation) DebugSendSms added in v0.25.0

func (*Mutation) DeleteAll

func (a *Mutation) DeleteAll(ctx context.Context, input []assignment.RawTarget) (bool, error)

func (*Mutation) DeleteAuthSubject

func (a *Mutation) DeleteAuthSubject(ctx context.Context, input user.AuthSubject) (bool, error)

func (*Mutation) DeleteUser

func (a *Mutation) DeleteUser(ctx context.Context, id string) (bool, error)

func (*Mutation) EndAllAuthSessionsByCurrentUser added in v0.26.0

func (a *Mutation) EndAllAuthSessionsByCurrentUser(ctx context.Context) (bool, error)

func (*Mutation) EscalateAlerts

func (m *Mutation) EscalateAlerts(ctx context.Context, ids []int) ([]alert.Alert, error)

func (*Mutation) SendContactMethodVerification added in v0.23.0

func (m *Mutation) SendContactMethodVerification(ctx context.Context, input graphql2.SendContactMethodVerificationInput) (bool, error)

func (*Mutation) SetConfig

func (m *Mutation) SetConfig(ctx context.Context, input []graphql2.ConfigValueInput) (bool, error)

func (*Mutation) SetFavorite

func (a *Mutation) SetFavorite(ctx context.Context, input graphql2.SetFavoriteInput) (bool, error)

func (*Mutation) SetLabel

func (m *Mutation) SetLabel(ctx context.Context, input graphql2.SetLabelInput) (bool, error)

func (*Mutation) SetScheduleOnCallNotificationRules added in v0.28.0

func (a *Mutation) SetScheduleOnCallNotificationRules(ctx context.Context, input graphql2.SetScheduleOnCallNotificationRulesInput) (bool, error)

func (*Mutation) SetSystemLimits added in v0.25.0

func (m *Mutation) SetSystemLimits(ctx context.Context, input []graphql2.SystemLimitInput) (bool, error)

func (*Mutation) SetTemporarySchedule added in v0.27.0

func (a *Mutation) SetTemporarySchedule(ctx context.Context, input graphql2.SetTemporaryScheduleInput) (bool, error)

func (*Mutation) TestContactMethod

func (a *Mutation) TestContactMethod(ctx context.Context, id string) (bool, error)

func (*Mutation) UpdateAlerts

func (m *Mutation) UpdateAlerts(ctx context.Context, args graphql2.UpdateAlertsInput) ([]alert.Alert, error)

func (*Mutation) UpdateAlertsByService added in v0.25.0

func (m *Mutation) UpdateAlertsByService(ctx context.Context, args graphql2.UpdateAlertsByServiceInput) (bool, error)

func (*Mutation) UpdateEscalationPolicy

func (m *Mutation) UpdateEscalationPolicy(ctx context.Context, input graphql2.UpdateEscalationPolicyInput) (bool, error)

func (*Mutation) UpdateEscalationPolicyStep

func (m *Mutation) UpdateEscalationPolicyStep(ctx context.Context, input graphql2.UpdateEscalationPolicyStepInput) (bool, error)

func (*Mutation) UpdateHeartbeatMonitor added in v0.24.0

func (m *Mutation) UpdateHeartbeatMonitor(ctx context.Context, input graphql2.UpdateHeartbeatMonitorInput) (bool, error)

func (*Mutation) UpdateRotation

func (m *Mutation) UpdateRotation(ctx context.Context, input graphql2.UpdateRotationInput) (res bool, err error)

func (*Mutation) UpdateSchedule

func (m *Mutation) UpdateSchedule(ctx context.Context, input graphql2.UpdateScheduleInput) (ok bool, err error)

func (*Mutation) UpdateScheduleTarget

func (m *Mutation) UpdateScheduleTarget(ctx context.Context, input graphql2.ScheduleTargetInput) (bool, error)

func (*Mutation) UpdateService

func (a *Mutation) UpdateService(ctx context.Context, input graphql2.UpdateServiceInput) (bool, error)

func (*Mutation) UpdateUser

func (a *Mutation) UpdateUser(ctx context.Context, input graphql2.UpdateUserInput) (bool, error)

func (*Mutation) UpdateUserCalendarSubscription added in v0.25.0

func (m *Mutation) UpdateUserCalendarSubscription(ctx context.Context, input graphql2.UpdateUserCalendarSubscriptionInput) (bool, error)

func (*Mutation) UpdateUserContactMethod

func (m *Mutation) UpdateUserContactMethod(ctx context.Context, input graphql2.UpdateUserContactMethodInput) (bool, error)

func (*Mutation) UpdateUserOverride

func (m *Mutation) UpdateUserOverride(ctx context.Context, input graphql2.UpdateUserOverrideInput) (bool, error)

func (*Mutation) VerifyContactMethod added in v0.23.0

func (m *Mutation) VerifyContactMethod(ctx context.Context, input graphql2.VerifyContactMethodInput) (bool, error)

type OnCallNotificationRule added in v0.28.0

type OnCallNotificationRule App

func (*OnCallNotificationRule) Target added in v0.28.0

type OnCallShift

type OnCallShift App

func (*OnCallShift) User

func (oc *OnCallShift) User(ctx context.Context, raw *oncall.Shift) (*user.User, error)

type Query

type Query App

func (*Query) Alert

func (q *Query) Alert(ctx context.Context, alertID int) (*alert.Alert, error)

func (*Query) Alerts

func (q *Query) Alerts(ctx context.Context, opts *graphql2.AlertSearchOptions) (conn *graphql2.AlertConnection, err error)

func (*Query) AuthSubjectsForProvider

func (a *Query) AuthSubjectsForProvider(ctx context.Context, _first *int, _after *string, providerID string) (conn *graphql2.AuthSubjectConnection, err error)

func (*Query) CalcRotationHandoffTimes added in v0.27.0

func (a *Query) CalcRotationHandoffTimes(ctx context.Context, input *graphql2.CalcRotationHandoffTimesInput) ([]time.Time, error)

func (*Query) Config

func (q *Query) Config(ctx context.Context, all *bool) ([]graphql2.ConfigValue, error)

func (*Query) ConfigHints added in v0.25.0

func (q *Query) ConfigHints(ctx context.Context) ([]graphql2.ConfigHint, error)

func (*Query) DebugMessageStatus added in v0.29.0

func (*Query) EscalationPolicies

func (*Query) EscalationPolicy

func (q *Query) EscalationPolicy(ctx context.Context, id string) (*escalation.Policy, error)

func (*Query) GenerateSlackAppManifest added in v0.28.0

func (q *Query) GenerateSlackAppManifest(ctx context.Context) (string, error)

func (*Query) HeartbeatMonitor added in v0.24.0

func (q *Query) HeartbeatMonitor(ctx context.Context, id string) (*heartbeat.Monitor, error)

func (*Query) IntegrationKey

func (q *Query) IntegrationKey(ctx context.Context, id string) (*integrationkey.IntegrationKey, error)

func (*Query) LabelKeys added in v0.25.0

func (q *Query) LabelKeys(ctx context.Context, input *graphql2.LabelKeySearchOptions) (conn *graphql2.StringConnection, err error)

func (*Query) LabelValues added in v0.25.0

func (q *Query) LabelValues(ctx context.Context, input *graphql2.LabelValueSearchOptions) (conn *graphql2.StringConnection, err error)

func (*Query) Labels

func (q *Query) Labels(ctx context.Context, input *graphql2.LabelSearchOptions) (conn *graphql2.LabelConnection, err error)

func (*Query) PhoneNumberInfo added in v0.25.0

func (a *Query) PhoneNumberInfo(ctx context.Context, number string) (*graphql2.PhoneNumberInfo, error)

func (*Query) Rotation

func (q *Query) Rotation(ctx context.Context, id string) (*rotation.Rotation, error)

func (*Query) Rotations

func (q *Query) Rotations(ctx context.Context, opts *graphql2.RotationSearchOptions) (conn *graphql2.RotationConnection, err error)

func (*Query) Schedule

func (q *Query) Schedule(ctx context.Context, id string) (*schedule.Schedule, error)

func (*Query) Schedules

func (q *Query) Schedules(ctx context.Context, opts *graphql2.ScheduleSearchOptions) (conn *graphql2.ScheduleConnection, err error)

func (*Query) Service

func (q *Query) Service(ctx context.Context, id string) (*service.Service, error)

func (*Query) Services

func (q *Query) Services(ctx context.Context, opts *graphql2.ServiceSearchOptions) (conn *graphql2.ServiceConnection, err error)

func (*Query) SlackChannel

func (q *Query) SlackChannel(ctx context.Context, id string) (*slack.Channel, error)

func (*Query) SlackChannels

func (q *Query) SlackChannels(ctx context.Context, input *graphql2.SlackChannelSearchOptions) (conn *graphql2.SlackChannelConnection, err error)

func (*Query) SystemLimits added in v0.25.0

func (q *Query) SystemLimits(ctx context.Context) ([]graphql2.SystemLimit, error)

func (*Query) TimeZones

func (q *Query) TimeZones(ctx context.Context, input *graphql2.TimeZoneSearchOptions) (conn *graphql2.TimeZoneConnection, err error)

func (*Query) User

func (a *Query) User(ctx context.Context, id *string) (*user.User, error)

func (*Query) UserCalendarSubscription added in v0.25.0

func (q *Query) UserCalendarSubscription(ctx context.Context, id string) (*calendarsubscription.CalendarSubscription, error)

func (*Query) UserContactMethod

func (q *Query) UserContactMethod(ctx context.Context, id string) (*contactmethod.ContactMethod, error)

func (*Query) UserOverride

func (q *Query) UserOverride(ctx context.Context, id string) (*override.UserOverride, error)

func (*Query) UserOverrides

func (q *Query) UserOverrides(ctx context.Context, input *graphql2.UserOverrideSearchOptions) (conn *graphql2.UserOverrideConnection, err error)

func (*Query) Users

func (q *Query) Users(ctx context.Context, opts *graphql2.UserSearchOptions, first *int, after, searchStr *string) (conn *graphql2.UserConnection, err error)

type Rotation

type Rotation App

func (*Rotation) ActiveUserIndex

func (r *Rotation) ActiveUserIndex(ctx context.Context, obj *rotation.Rotation) (int, error)

func (*Rotation) IsFavorite added in v0.23.0

func (r *Rotation) IsFavorite(ctx context.Context, rot *rotation.Rotation) (bool, error)

func (*Rotation) NextHandoffTimes

func (r *Rotation) NextHandoffTimes(ctx context.Context, rot *rotation.Rotation, num *int) ([]time.Time, error)

func (*Rotation) TimeZone

func (r *Rotation) TimeZone(ctx context.Context, rot *rotation.Rotation) (string, error)

func (*Rotation) UserIDs

func (r *Rotation) UserIDs(ctx context.Context, rot *rotation.Rotation) ([]string, error)

func (*Rotation) Users

func (r *Rotation) Users(ctx context.Context, rot *rotation.Rotation) ([]user.User, error)

type Schedule

type Schedule App

func (*Schedule) AssignedTo

func (s *Schedule) AssignedTo(ctx context.Context, raw *schedule.Schedule) ([]assignment.RawTarget, error)

func (*Schedule) IsFavorite added in v0.23.0

func (s *Schedule) IsFavorite(ctx context.Context, raw *schedule.Schedule) (bool, error)

func (*Schedule) OnCallNotificationRules added in v0.28.0

func (s *Schedule) OnCallNotificationRules(ctx context.Context, raw *schedule.Schedule) ([]schedule.OnCallNotificationRule, error)

func (*Schedule) Shifts

func (s *Schedule) Shifts(ctx context.Context, raw *schedule.Schedule, start, end time.Time) ([]oncall.Shift, error)

func (*Schedule) Target

func (*Schedule) Targets

func (*Schedule) TemporarySchedules added in v0.27.0

func (s *Schedule) TemporarySchedules(ctx context.Context, raw *schedule.Schedule) ([]schedule.TemporarySchedule, error)

func (*Schedule) TimeZone

func (r *Schedule) TimeZone(ctx context.Context, data *schedule.Schedule) (string, error)

type ScheduleRule

type ScheduleRule App

func (*ScheduleRule) Target

func (r *ScheduleRule) Target(ctx context.Context, raw *rule.Rule) (*assignment.RawTarget, error)

func (*ScheduleRule) WeekdayFilter

func (r *ScheduleRule) WeekdayFilter(ctx context.Context, raw *rule.Rule) ([]bool, error)

type Service

type Service App

func (*Service) EscalationPolicy

func (s *Service) EscalationPolicy(ctx context.Context, raw *service.Service) (*escalation.Policy, error)

func (*Service) HeartbeatMonitors added in v0.24.0

func (s *Service) HeartbeatMonitors(ctx context.Context, raw *service.Service) ([]heartbeat.Monitor, error)

func (*Service) IntegrationKeys

func (s *Service) IntegrationKeys(ctx context.Context, raw *service.Service) ([]integrationkey.IntegrationKey, error)

func (*Service) IsFavorite

func (s *Service) IsFavorite(ctx context.Context, raw *service.Service) (bool, error)

func (*Service) Labels

func (s *Service) Labels(ctx context.Context, raw *service.Service) ([]label.Label, error)

func (*Service) OnCallUsers

func (s *Service) OnCallUsers(ctx context.Context, raw *service.Service) ([]oncall.ServiceOnCallUser, error)

type Target

type Target App

func (*Target) Name

func (t *Target) Name(ctx context.Context, raw *assignment.RawTarget) (*string, error)

type TemporarySchedule added in v0.27.0

type TemporarySchedule App

func (*TemporarySchedule) Shifts added in v0.27.0

type User

type User App

func (*User) AuthSubjects

func (a *User) AuthSubjects(ctx context.Context, obj *user.User) ([]user.AuthSubject, error)

func (*User) CalendarSubscriptions added in v0.25.0

func (a *User) CalendarSubscriptions(ctx context.Context, obj *user.User) ([]calendarsubscription.CalendarSubscription, error)

func (*User) ContactMethods

func (a *User) ContactMethods(ctx context.Context, obj *user.User) ([]contactmethod.ContactMethod, error)

func (*User) IsFavorite added in v0.29.0

func (a *User) IsFavorite(ctx context.Context, raw *user.User) (bool, error)

func (*User) NotificationRules

func (a *User) NotificationRules(ctx context.Context, obj *user.User) ([]notificationrule.NotificationRule, error)

func (*User) OnCallSteps

func (a *User) OnCallSteps(ctx context.Context, obj *user.User) ([]escalation.Step, error)

func (*User) Role

func (a *User) Role(ctx context.Context, usr *user.User) (graphql2.UserRole, error)

func (*User) Sessions added in v0.26.0

func (a *User) Sessions(ctx context.Context, obj *user.User) ([]auth.UserSession, error)

type UserCalendarSubscription added in v0.25.0

type UserCalendarSubscription App

func (*UserCalendarSubscription) ReminderMinutes added in v0.25.0

func (*UserCalendarSubscription) Schedule added in v0.25.0

func (*UserCalendarSubscription) URL added in v0.25.0

type UserNotificationRule

type UserNotificationRule App

func (*UserNotificationRule) ContactMethod

type UserOverride

type UserOverride App

func (*UserOverride) AddUser

func (u *UserOverride) AddUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)

func (*UserOverride) RemoveUser

func (u *UserOverride) RemoveUser(ctx context.Context, raw *override.UserOverride) (*user.User, error)

func (*UserOverride) Target

type UserSession added in v0.26.0

type UserSession App

func (*UserSession) Current added in v0.26.0

func (a *UserSession) Current(ctx context.Context, obj *auth.UserSession) (bool, error)

Jump to

Keyboard shortcuts

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