Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Netflix/hal-9001
/ functions
Functions
585 in github.com/Netflix/hal-9001
⨍
Functions
585
◇
Types & classes
101
↓ 3 callers
Method
ReplyDM
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 callers
Method
Room
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 callers
Method
RoomNameToId
(name string)
hal/broker.go:32
↓ 3 callers
Method
User
User filters the preference list by user, returning a new Prefs e.g. uprefs = prefs.User("adent")
hal/prefs.go:458
↓ 3 callers
Function
aliasKey
(alias string)
plugins/pagerduty/page_plugin.go:186
↓ 3 callers
Method
attachKeyParam
(whatever cmdorsubcmd)
hal/cmd.go:1141
↓ 3 callers
Method
get
()
hal/prefs.go:193
↓ 3 callers
Function
getMutex
(token string)
plugins/pagerduty/oncall_plugin.go:426
↓ 3 callers
Function
getOncallCache
(token string, forceUpdate bool)
plugins/pagerduty/oncall_plugin.go:211
↓ 3 callers
Method
initTable
initTable runs the table initialization statement once
hal/secrets.go:254
↓ 3 callers
Function
kvLazyInit
()
hal/kv.go:37
↓ 3 callers
Method
loadBoolPref
(key string)
plugins/google_calendar/plugin.go:361
↓ 2 callers
Method
Aliases
Aliases makes sure the Aliases list is initialized and returns the list.
hal/cmd.go:269
↓ 2 callers
Function
AsciiTable
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 callers
Method
Brokers
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 callers
Method
Delete
()
plugins/pluginmgr/plugin.go:340
↓ 2 callers
Method
DisableDbgStdout
DisableDbgStdout disables the automatic forwarding of debug messages to stdout.
hal/logger.go:254
↓ 2 callers
Method
DisableLogStdout
DisableLogStdout disables the automatic forwarding of log messages to stdout.
hal/logger.go:241
↓ 2 callers
Function
FetchMarks
(room string, limit int)
plugins/mark/plugin.go:118
↓ 2 callers
Method
FillRoomCache
()
brokers/slack/broker.go:585
↓ 2 callers
Method
FillUserCache
()
brokers/slack/broker.go:548
↓ 2 callers
Method
Find
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 callers
Method
GetIdxParam
(idx int)
hal/cmd.go:1570
↓ 2 callers
Method
GetPrefs
GetPrefs returns all preferences that match the fields set in the handle.
hal/prefs.go:189
↓ 2 callers
Function
GetRoster
()
plugins/roster/plugin.go:125
↓ 2 callers
Method
GetSubCmd
GetSubCmd gets a subcommand by its token. Returns nil for no match.
hal/cmd.go:853
↓ 2 callers
Function
GetTeams
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Teams/get_teams
plugins/pagerduty/pd_team.go:26
↓ 2 callers
Method
HasBoolParamInst
(key string)
hal/cmd.go:1346
↓ 2 callers
Method
HasIdxParam
(int)
hal/cmd.go:180
↓ 2 callers
Method
HasIdxParam
(idx int)
hal/cmd.go:1370
↓ 2 callers
Method
HasIdxParamInst
(idx int)
hal/cmd.go:1360
↓ 2 callers
Method
HasKVParamInst
(key string)
hal/cmd.go:1328
↓ 2 callers
Method
HasKeyParam
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 callers
Method
HasSubCmdToken
HasSubCmdToken returns whether or not the proivded token is defined as a subcommand.
hal/cmd.go:1244
↓ 2 callers
Method
Int
()
hal/cmd.go:169
↓ 2 callers
Method
LoadFromPrefs
()
plugins/google_calendar/plugin.go:329
↓ 2 callers
Method
LooksLikeRoomId
(room string)
hal/broker.go:29
↓ 2 callers
Method
LooksLikeUserId
(user string)
hal/broker.go:30
↓ 2 callers
Method
Panic
Panic panics immediately. No attempt is made to forward/propagate.
hal/logger.go:177
↓ 2 callers
Method
PluginList
PluginList returns a snapshot of the plugin list at call time.
hal/plugins.go:216
↓ 2 callers
Method
ReplyToRoom
ReplyToRoom crafts a new event from the provided string and sends it to the room the event originated from.
hal/event.go:163
↓ 2 callers
Method
RoomIdToName
(id string)
hal/broker.go:31
↓ 2 callers
Method
RoomIdToName
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 callers
Method
SendAsIs
SendAsIs directly sends a message without considering it for posting as a snippet.
brokers/slack/broker.go:134
↓ 2 callers
Method
SendAsSnippet
(evt hal.Evt)
brokers/slack/broker.go:110
↓ 2 callers
Method
String
String returns the LogEntry as a formatted log string.
hal/logger.go:59
↓ 2 callers
Method
StringsToImage
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 callers
Method
Unregister
Unregister removes a plugin from the bot.
hal/plugins.go:92
↓ 2 callers
Method
UserIdToName
(id string)
hal/broker.go:33
↓ 2 callers
Method
UserNameToId
(name string)
hal/broker.go:34
↓ 2 callers
Method
appendIdxParamInst
(*IdxParamInst)
hal/cmd.go:186
↓ 2 callers
Method
appendIdxParamInst
(pi *IdxParamInst)
hal/cmd.go:1587
↓ 2 callers
Method
assertZeroKeyParams
assertZeroKeyParams panics if there are any BoolParam or KVParam defined.
hal/cmd.go:286
↓ 2 callers
Function
authenticatedPost
AuthenticatedPost authenticates with the provided token and posts the provided body.
plugins/pagerduty/helpers.go:55
↓ 2 callers
Function
boolParam
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 callers
Function
cmd2pref
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 callers
Function
defIntParam
DefInt returns the value as an int. See DefString for the rules.
hal/cmd.go:1920
↓ 2 callers
Function
defStringParam
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 callers
Function
durationParam
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 callers
Method
expireCaches
()
plugins/google_calendar/plugin.go:356
↓ 2 callers
Function
extractArgs
(argv []string, i int)
plugins/blabber/plugin.go:281
↓ 2 callers
Function
floatParam
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 callers
Method
fwdStdout
fwdStdout is run as a goroutine to read off a channel and print to stdout.
hal/logger.go:91
↓ 2 callers
Function
getCacheFreq
()
plugins/pagerduty/oncall_plugin.go:251
↓ 2 callers
Function
getCachedConfig
(roomId string, now time.Time)
plugins/google_calendar/plugin.go:292
↓ 2 callers
Function
getEvents
(calendarId string, now time.Time)
plugins/google_calendar/google.go:62
↓ 2 callers
Method
getGCM
getGCM returns an AES/GCM cipher configured with the default nonce size.
hal/secrets.go:285
↓ 2 callers
Function
getRows
(sql string, params []interface{})
plugins/blabber/plugin.go:208
↓ 2 callers
Method
injectRoomId
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 callers
Function
intParam
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 callers
Function
looksLikeParam
looksLikeParam returns true if there is a leading - or an = in the string.
hal/cmd.go:1131
↓ 2 callers
Function
mkQueryFragment
(col string, list []string)
plugins/blabber/plugin.go:263
↓ 2 callers
Method
precedence
()
hal/prefs.go:562
↓ 2 callers
Method
runFunc
runFunc runs the provided function while holding the pf's mutex.
hal/periodic.go:110
↓ 2 callers
Function
timeParam
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 callers
Function
updateCachedCalEvents
(roomId string)
plugins/google_calendar/plugin.go:267
↓ 1 callers
Method
ActivePluginList
ActivePluginList returns a list of plugins that have registered instances.
hal/plugins.go:271
↓ 1 callers
Method
Age
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 callers
Method
Aliases
Aliases initializes the aliases list on the fly and returns it.
hal/cmd.go:1640
↓ 1 callers
Method
Bool
()
hal/cmd.go:171
↓ 1 callers
Method
Broker
Broker filters the preference list by broker, returning a new Prefs
hal/prefs.go:485
↓ 1 callers
Method
DefInt
(def int)
hal/cmd.go:1938
↓ 1 callers
Method
Delete
Set writes the value and returns a new struct with the new value.
hal/prefs.go:272
↓ 1 callers
Method
DisableDebug
DisableDebug disables debug message propagation.
hal/logger.go:212
↓ 1 callers
Function
FetchArchive
FetchArchive selects messages from the archive table up to the provided number of messages limit.
plugins/archive/plugin.go:168
↓ 1 callers
Function
FindPrefs
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 callers
Method
Float
()
hal/cmd.go:170
↓ 1 callers
Method
GetAttrNodes
GetAttrNodes takes an attribute and value and returns a list of nodes that have (exactly) matching attributes.
hal/directory.go:215
↓ 1 callers
Method
GetBoolParam
(string)
hal/cmd.go:182
↓ 1 callers
Method
GetBoolParam
(key string)
hal/cmd.go:1478
↓ 1 callers
Method
GetBoolParam
(key string)
hal/cmd.go:1488
↓ 1 callers
Function
GetEscalationPolicies
https://v2.developer.pagerduty.com/v2/page/api-reference#!/Escalation_Policies/get_escalation_policies
plugins/pagerduty/pd_policy.go:26
↓ 1 callers
Method
GetIdxParam
GetIdxParam gets a positional parameter by its index.
hal/cmd.go:811
↓ 1 callers
Method
GetIdxParam
(idx int)
hal/cmd.go:1561
↓ 1 callers
Method
GetIdxParamInst
GetIdxParamInst gets an indexed parameter instance by its index.
hal/cmd.go:1518
↓ 1 callers
Method
GetKVParam
(string)
hal/cmd.go:181
↓ 1 callers
Method
GetKVParam
(key string)
hal/cmd.go:1416
↓ 1 callers
Method
GetKVParam
(key string)
hal/cmd.go:1426
↓ 1 callers
Function
GetPeriodicFunc
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 callers
Function
GetPluginGroup
(group string)
plugins/pluginmgr/plugin.go:297
← previous
next →
101–200 of 585, ranked by callers