MCPcopy Index your code

hub / github.com/Netflix/hal-9001 / functions

Functions585 in github.com/Netflix/hal-9001

↓ 3 callersMethodReplyDM
ReplyDM makes it convenient to reply to a user via DM. The user is drawn from the event's UserId field and passed to the broker's SendDM() method.
hal/event.go:155
↓ 3 callersMethodRoom
Room filters the preference list by room, returning a new Prefs e.g. instprefs = prefs.Room("magrathea").Plugin("uptime").Broker("slack")
hal/prefs.go:472
↓ 3 callersMethodRoomNameToId
(name string)
hal/broker.go:32
↓ 3 callersMethodUser
User filters the preference list by user, returning a new Prefs e.g. uprefs = prefs.User("adent")
hal/prefs.go:458
↓ 3 callersFunctionaliasKey
(alias string)
plugins/pagerduty/page_plugin.go:186
↓ 3 callersMethodattachKeyParam
(whatever cmdorsubcmd)
hal/cmd.go:1141
↓ 3 callersMethodget
()
hal/prefs.go:193
↓ 3 callersFunctiongetMutex
(token string)
plugins/pagerduty/oncall_plugin.go:426
↓ 3 callersFunctiongetOncallCache
(token string, forceUpdate bool)
plugins/pagerduty/oncall_plugin.go:211
↓ 3 callersMethodinitTable
initTable runs the table initialization statement once
hal/secrets.go:254
↓ 3 callersFunctionkvLazyInit
()
hal/kv.go:37
↓ 3 callersMethodloadBoolPref
(key string)
plugins/google_calendar/plugin.go:361
↓ 2 callersMethodAliases
Aliases makes sure the Aliases list is initialized and returns the list.
hal/cmd.go:269
↓ 2 callersFunctionAsciiTable
Table takes a 2-dimensional array of strings and returns a single string formatted in a table appropriate for rendering in a fixed-width font. Should
hal/asciitable.go:29
↓ 2 callersMethodBrokers
Brokers returns all brokers that have been added to the router. The returned list is not in any particular order.
hal/router.go:108
↓ 2 callersMethodDelete
()
plugins/pluginmgr/plugin.go:340
↓ 2 callersMethodDisableDbgStdout
DisableDbgStdout disables the automatic forwarding of debug messages to stdout.
hal/logger.go:254
↓ 2 callersMethodDisableLogStdout
DisableLogStdout disables the automatic forwarding of log messages to stdout.
hal/logger.go:241
↓ 2 callersFunctionFetchMarks
(room string, limit int)
plugins/mark/plugin.go:118
↓ 2 callersMethodFillRoomCache
()
brokers/slack/broker.go:585
↓ 2 callersMethodFillUserCache
()
brokers/slack/broker.go:548
↓ 2 callersMethodFind
Find retrieves all preferences from the database that match any field in the handle's fields. If the Key field is set, it is matched first. The result
hal/prefs.go:304
↓ 2 callersMethodGetIdxParam
(idx int)
hal/cmd.go:1570
↓ 2 callersMethodGetPrefs
GetPrefs returns all preferences that match the fields set in the handle.
hal/prefs.go:189
↓ 2 callersFunctionGetRoster
()
plugins/roster/plugin.go:125
↓ 2 callersMethodGetSubCmd
GetSubCmd gets a subcommand by its token. Returns nil for no match.
hal/cmd.go:853
↓ 2 callersFunctionGetTeams
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Teams/get_teams
plugins/pagerduty/pd_team.go:26
↓ 2 callersMethodHasBoolParamInst
(key string)
hal/cmd.go:1346
↓ 2 callersMethodHasIdxParam
(int)
hal/cmd.go:180
↓ 2 callersMethodHasIdxParam
(idx int)
hal/cmd.go:1370
↓ 2 callersMethodHasIdxParamInst
(idx int)
hal/cmd.go:1360
↓ 2 callersMethodHasKVParamInst
(key string)
hal/cmd.go:1328
↓ 2 callersMethodHasKeyParam
HasKeyParam returns true if there are any parameters defined with the provided key of either key type (bool or kv).
hal/cmd.go:1260
↓ 2 callersMethodHasSubCmdToken
HasSubCmdToken returns whether or not the proivded token is defined as a subcommand.
hal/cmd.go:1244
↓ 2 callersMethodInt
()
hal/cmd.go:169
↓ 2 callersMethodLoadFromPrefs
()
plugins/google_calendar/plugin.go:329
↓ 2 callersMethodLooksLikeRoomId
(room string)
hal/broker.go:29
↓ 2 callersMethodLooksLikeUserId
(user string)
hal/broker.go:30
↓ 2 callersMethodPanic
Panic panics immediately. No attempt is made to forward/propagate.
hal/logger.go:177
↓ 2 callersMethodPluginList
PluginList returns a snapshot of the plugin list at call time.
hal/plugins.go:216
↓ 2 callersMethodReplyToRoom
ReplyToRoom crafts a new event from the provided string and sends it to the room the event originated from.
hal/event.go:163
↓ 2 callersMethodRoomIdToName
(id string)
hal/broker.go:31
↓ 2 callersMethodRoomIdToName
only considers rooms that have been configured in the bot and does not hit the Hipchat APIs at all TODO: hit the API and get the room/name lists and c
brokers/hipchat/broker.go:246
↓ 2 callersMethodSendAsIs
SendAsIs directly sends a message without considering it for posting as a snippet.
brokers/slack/broker.go:134
↓ 2 callersMethodSendAsSnippet
(evt hal.Evt)
brokers/slack/broker.go:110
↓ 2 callersMethodString
String returns the LogEntry as a formatted log string.
hal/logger.go:59
↓ 2 callersMethodStringsToImage
StringsToImage renders an array of strings to an image, with each row in the provided list as a line. The image size is dependent on the text passed i
hal/text2image.go:147
↓ 2 callersMethodUnregister
Unregister removes a plugin from the bot.
hal/plugins.go:92
↓ 2 callersMethodUserIdToName
(id string)
hal/broker.go:33
↓ 2 callersMethodUserNameToId
(name string)
hal/broker.go:34
↓ 2 callersMethodappendIdxParamInst
(*IdxParamInst)
hal/cmd.go:186
↓ 2 callersMethodappendIdxParamInst
(pi *IdxParamInst)
hal/cmd.go:1587
↓ 2 callersMethodassertZeroKeyParams
assertZeroKeyParams panics if there are any BoolParam or KVParam defined.
hal/cmd.go:286
↓ 2 callersFunctionauthenticatedPost
AuthenticatedPost authenticates with the provided token and posts the provided body.
plugins/pagerduty/helpers.go:55
↓ 2 callersFunctionboolParam
Bool returns the value of the parameter as a bool. If the value is required and not set, returns RequiredParamNotFound. If the value cannot be convert
hal/cmd.go:1759
↓ 2 callersFunctioncmd2pref
cmd2pref copies data from the hal.Cmd and hal.Evt into a hal.Pref, resolving *'s on the way.
plugins/prefmgr/plugin.go:135
↓ 2 callersFunctiondefIntParam
DefInt returns the value as an int. See DefString for the rules.
hal/cmd.go:1920
↓ 2 callersFunctiondefStringParam
DefString returns the value as a string. Rules: If the param is required and it was not set, return the provided default. If the param is not required
hal/cmd.go:1891
↓ 2 callersFunctiondurationParam
Duration returns the value of the parameter as a Go time.Duration. Day and Week (e.g. "1w", "1d") are converted to 168 and 24 hours respectively. If t
hal/cmd.go:1785
↓ 2 callersMethodexpireCaches
()
plugins/google_calendar/plugin.go:356
↓ 2 callersFunctionextractArgs
(argv []string, i int)
plugins/blabber/plugin.go:281
↓ 2 callersFunctionfloatParam
Float returns the value of the parameter as a float. If the value cannot be converted, an error will be returned. See: strconv.ParseFloat
hal/cmd.go:1735
↓ 2 callersMethodfwdStdout
fwdStdout is run as a goroutine to read off a channel and print to stdout.
hal/logger.go:91
↓ 2 callersFunctiongetCacheFreq
()
plugins/pagerduty/oncall_plugin.go:251
↓ 2 callersFunctiongetCachedConfig
(roomId string, now time.Time)
plugins/google_calendar/plugin.go:292
↓ 2 callersFunctiongetEvents
(calendarId string, now time.Time)
plugins/google_calendar/google.go:62
↓ 2 callersMethodgetGCM
getGCM returns an AES/GCM cipher configured with the default nonce size.
hal/secrets.go:285
↓ 2 callersFunctiongetRows
(sql string, params []interface{})
plugins/blabber/plugin.go:208
↓ 2 callersMethodinjectRoomId
injectRoomId adds an id:name mapping to the forward and reverse lookup maps for internal use only, used to inject groups (private channels) on join
brokers/slack/broker.go:768
↓ 2 callersFunctionintParam
intParam returns the value as an int. If the param is required and it was not set, RequiredParamNotFound is returned. Additionally, any errors in conv
hal/cmd.go:1712
↓ 2 callersFunctionlooksLikeParam
looksLikeParam returns true if there is a leading - or an = in the string.
hal/cmd.go:1131
↓ 2 callersFunctionmkQueryFragment
(col string, list []string)
plugins/blabber/plugin.go:263
↓ 2 callersMethodprecedence
()
hal/prefs.go:562
↓ 2 callersMethodrunFunc
runFunc runs the provided function while holding the pf's mutex.
hal/periodic.go:110
↓ 2 callersFunctiontimeParam
Time returns the value of the parameter as a Go time.Time. Many formats are attempted before giving up. If the value is required and not set, returns
hal/cmd.go:1829
↓ 2 callersFunctionupdateCachedCalEvents
(roomId string)
plugins/google_calendar/plugin.go:267
↓ 1 callersMethodActivePluginList
ActivePluginList returns a list of plugins that have registered instances.
hal/plugins.go:271
↓ 1 callersMethodAge
Age returns the age as time.Duration for the given key. Returns duration 0 for keys that don't exist.
hal/ttlcache.go:118
↓ 1 callersMethodAliases
Aliases initializes the aliases list on the fly and returns it.
hal/cmd.go:1640
↓ 1 callersMethodBool
()
hal/cmd.go:171
↓ 1 callersMethodBroker
Broker filters the preference list by broker, returning a new Prefs
hal/prefs.go:485
↓ 1 callersMethodDefInt
(def int)
hal/cmd.go:1938
↓ 1 callersMethodDelete
Set writes the value and returns a new struct with the new value.
hal/prefs.go:272
↓ 1 callersMethodDisableDebug
DisableDebug disables debug message propagation.
hal/logger.go:212
↓ 1 callersFunctionFetchArchive
FetchArchive selects messages from the archive table up to the provided number of messages limit.
plugins/archive/plugin.go:168
↓ 1 callersFunctionFindPrefs
FindPrefs gets all records that match any of the inputs that are not empty strings. (hint: user="x", broker="y"; WHERE user=? OR broker=?)
hal/prefs.go:143
↓ 1 callersMethodFloat
()
hal/cmd.go:170
↓ 1 callersMethodGetAttrNodes
GetAttrNodes takes an attribute and value and returns a list of nodes that have (exactly) matching attributes.
hal/directory.go:215
↓ 1 callersMethodGetBoolParam
(string)
hal/cmd.go:182
↓ 1 callersMethodGetBoolParam
(key string)
hal/cmd.go:1478
↓ 1 callersMethodGetBoolParam
(key string)
hal/cmd.go:1488
↓ 1 callersFunctionGetEscalationPolicies
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Escalation_Policies/get_escalation_policies
plugins/pagerduty/pd_policy.go:26
↓ 1 callersMethodGetIdxParam
GetIdxParam gets a positional parameter by its index.
hal/cmd.go:811
↓ 1 callersMethodGetIdxParam
(idx int)
hal/cmd.go:1561
↓ 1 callersMethodGetIdxParamInst
GetIdxParamInst gets an indexed parameter instance by its index.
hal/cmd.go:1518
↓ 1 callersMethodGetKVParam
(string)
hal/cmd.go:181
↓ 1 callersMethodGetKVParam
(key string)
hal/cmd.go:1416
↓ 1 callersMethodGetKVParam
(key string)
hal/cmd.go:1426
↓ 1 callersFunctionGetPeriodicFunc
GetPeriodicFunc finds a periodic function by name and returns a pointer to it. If the name is not found, nil is returned.
hal/periodic.go:53
↓ 1 callersFunctionGetPluginGroup
(group string)
plugins/pluginmgr/plugin.go:297
← previousnext →101–200 of 585, ranked by callers