Documentation ¶
Index ¶
Constants ¶
View Source
const RequestInfoContextKey = requestInfoKey(0)
RequestInfoContextKey is used to store RequestInfo in a context.Context.
Variables ¶
View Source
var HourTime = g.NewScalar(g.ScalarConfig{ Name: "HourTime", Description: "HourTime is a timestamp containing only the hour and minute.", Serialize: func(val interface{}) interface{} { return val.(rule.Clock).String() }, })
HourTime is a timestamp containing only the hour and minute
View Source
var ISOTimestamp = g.NewScalar(g.ScalarConfig{ Name: "ISOTimestamp", Description: "ISOTimestamp is a timestamp formatted as a string in the ISO format (RFC3339).", Serialize: func(val interface{}) interface{} { return val.(time.Time).Format(time.RFC3339Nano) }, })
ISOTimestamp is a timestamp formatted as a string in the ISO format
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB *sql.DB AlertStore alert.Store AlertLogStore alertlog.Store UserStore user.Store CMStore contactmethod.Store NRStore notificationrule.Store ServiceStore service.Store ScheduleStore schedule.Store ScheduleRuleStore rule.Store RotationStore rotation.Store ShiftCalc shiftcalc.Calculator EscalationStore escalation.Store IntegrationKeyStore integrationkey.Store HeartbeatStore heartbeat.Store LimitStore limit.Store OverrideStore override.Store Resolver resolver.Resolver NotificationStore notification.Store UserFavoriteStore favorite.Store LabelStore label.Store OnCallStore oncall.Store }
type RequestInfo ¶
RequestInfo carries useful information about the request.
Source Files ¶
- alert.go
- alertlog.go
- assignment.go
- cache.go
- config.go
- contactmethod.go
- createall.go
- createallutil.go
- deleteall.go
- deleteallutil.go
- escalation.go
- handler.go
- heartbeat.go
- integrationkey.go
- label.go
- legacydb.go
- limit.go
- notificationrule.go
- oncallassignment.go
- rotation.go
- rotationparticipant.go
- schedule.go
- scheduleassignment.go
- schedulerule.go
- scheduleshift.go
- schema.go
- service.go
- user.go
- userfavorite.go
- useroverride.go
- util.go
Click to show internal directories.
Click to hide internal directories.