Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Netflix/hal-9001
/ functions
Functions
585 in github.com/Netflix/hal-9001
⨍
Functions
585
◇
Types & classes
101
Method
SubCmds
TODO: remove this?
hal/cmd.go:848
Method
Subscribe
Subscribe joins a room with the given alias. These names are specific to how Hipchat does things.
brokers/hipchat/broker.go:160
Method
Swap
(i, j int)
hal/prefs.go:559
Method
Swap
(i, j int)
plugins/pagerduty/oncall_plugin.go:376
Function
TestAsciiTable
(t *testing.T)
hal/asciitable_test.go:24
Function
TestCmd
(t *testing.T)
hal/cmd_test.go:24
Function
TestEvtBodyAsArgv
(t *testing.T)
hal/event_test.go:24
Function
TestLogger
(t *testing.T)
hal/logger_test.go:23
Function
TestSecretsBasic
(t *testing.T)
hal/secrets_test.go:25
Function
TestTtlCache
(t *testing.T)
hal/ttlcache_test.go:32
Function
TestUtf8Table
(t *testing.T)
hal/utf8table_test.go:24
Function
Testtext2image
(t *testing.T)
hal/text2image_test.go:25
Method
Time
()
hal/cmd.go:1858
Method
Time
()
hal/cmd.go:1862
Method
Token
()
hal/cmd.go:775
Method
Ttl
Ttl returns the time-to-live for the given key. Returns a TTL of 0 for keys that don't exist.
hal/ttlcache.go:131
Method
Unregister
Unregister removes an instance from the list of plugin instances.
hal/plugins.go:158
Method
Usage
Usage returns the auto-generated usage string.
hal/cmd.go:426
Method
Usage
Usage returns the auto-generated usage string for the Command Instance.
hal/cmd.go:473
Method
Usage
()
hal/cmd.go:477
Method
Usage
()
hal/cmd.go:481
Method
Usage
()
hal/cmd.go:485
Method
UserIdToName
(in string)
brokers/console/broker.go:264
Method
UserIdToName
(in string)
brokers/hipchat/broker.go:264
Method
UserNameToId
(in string)
brokers/console/broker.go:265
Method
UserNameToId
UserNameToId gets the human-readable username for a user ID using an in-memory cache that falls through to the Slack API
brokers/slack/broker.go:708
Method
UserNameToId
(in string)
brokers/hipchat/broker.go:265
Method
Value
()
hal/cmd.go:1648
Method
Value
()
hal/cmd.go:1652
Method
Value
()
hal/cmd.go:1656
Method
Value
Value filters the preference list by key, returning a new Prefs
hal/prefs.go:524
Method
WipeDB
()
hal/secrets.go:263
Function
archiveReaction
archiveReactionAdded switches on the type of the original message and calls a broker-specific function to pull out the reaction and write it to the da
plugins/archive/plugin.go:112
Function
archiveRecorder
ArchiveRecorder inserts every message received into the database for use by other parts of the system.
plugins/archive/plugin.go:92
Function
blab
!blab --user atobey !blab --user atobey --room incidents !blab --room incidents !blab --user atobey,dhahn,jhorowitz ??? !blab --user dhahn TODO: figur
plugins/blabber/plugin.go:128
Function
bwCounter
(evt hal.Evt)
plugins/blabber/plugin.go:77
Function
crossStreams
crossStreams looks at events it recieves and repeats them to a different broker.
plugins/cross_the_streams/plugin.go:45
Function
defBoolParam
DefBool returns the value as a bool. See DefString for the rules.
hal/cmd.go:1966
Function
defFloatParam
DefFloat returns the value as a float. See DefString for the rules.
hal/cmd.go:1947
Function
docker
(evt hal.Evt)
plugins/docker/plugin.go:46
Method
errParam
errParam is used to get an interface{} handle to return in errors. See: RequiredParamNotFound
hal/cmd.go:751
Method
errParam
errParam is used to get an interface{} handle to return in errors.
hal/cmd.go:756
Method
errParam
errParam is used to get an interface{} handle to return in errors.
hal/cmd.go:761
Function
getid
getid resolves user & room names to ids using the broker's RoomNameToId and UserNameToId methods (along with the LooksLike* variants).
plugins/inspect/plugin.go:41
Function
guys
guys counts how many times you've used "guys" in a chat message and lets you know via DM !plugin attach guys this gets it listening to the room but it
plugins/guys/plugin.go:41
Function
handleEvt
handleEvt handles events coming in from the chat system. It does not interact directly with the calendar API and relies on the background goroutine to
plugins/google_calendar/plugin.go:119
Function
httpGetArchive
httpGetArchive retreives the 50 latest items from the event archive.
plugins/archive/plugin.go:151
Function
httpGetMarks
(w http.ResponseWriter, r *http.Request)
plugins/mark/plugin.go:102
Function
ingestPagerdutyAccount
()
plugins/pagerduty/poller.go:43
Function
init
()
hal/periodic.go:47
Function
init
()
plugins/uptime/plugin.go:29
Function
init
()
plugins/pagerduty/helpers.go:31
Function
init
()
plugins/pagerduty/oncall_plugin.go:44
Function
init
()
plugins/google_calendar/plugin.go:81
Function
init
()
plugins/prefmgr/plugin.go:41
Function
init
()
brokers/slack/broker.go:63
Function
initData
initData primes the cache and starts the background goroutine
plugins/google_calendar/plugin.go:97
Method
initialize
initialize internal fields, called automatically using pf.init.Do
hal/periodic.go:67
Function
leave
(evt hal.Evt)
plugins/inspect/plugin.go:61
Function
looksLikeBool
looksLikeBool checks to see if the provided value contains "true" or "false" in any case combination.
hal/cmd.go:1116
Function
main
This bot doesn't do anything except start the router and wait forever for messages that will never come. Most of hal's functionality is optional. It'
example/minimal/main.go:27
Function
main
()
example/demos/imgtable.go:30
Function
main
()
example/demos/colorparser.go:27
Function
main
()
example/demos/utf8table.go:26
Function
main
a simple bot that only implements generic plugins on a repl
example/repl/main.go:31
Function
main
()
example/everything/main.go:41
Function
main
a simple bot that only implements generic plugins on a repl possibly a basis for a command-line client for Slack, etc....
example/docker-repl/main.go:32
Function
mark
(evt hal.Evt)
plugins/mark/plugin.go:62
Method
newInst
(cmdinst *CmdInst, subcmdinst *SubCmdInst, isdef bool, value bool)
hal/cmd.go:639
Method
newInst
(cmdinst *CmdInst, subcmdinst *SubCmdInst, isdef bool, value string)
hal/cmd.go:650
Function
oncall
TODO: add the service key to the output such that someone trying to contact a team can page them from within Slack without having to set up a page ali
plugins/pagerduty/oncall_plugin.go:52
Function
oncallInit
(i *hal.Instance)
plugins/pagerduty/oncall_plugin.go:271
Function
page
(msg hal.Evt)
plugins/pagerduty/page_plugin.go:44
Function
pluginmgr
(evt hal.Evt)
plugins/pluginmgr/plugin.go:120
Function
pollerHandler
TODO: add a timestamp-based cleanup for old edges/attrs/etc.
plugins/pagerduty/poller.go:28
Function
pollerInit
(inst *hal.Instance)
plugins/pagerduty/poller.go:32
Function
prefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:26
Function
prefmgr
prefmgr is called when someone executes !pref in the chat system
plugins/prefmgr/plugin.go:104
Function
rosterlast
rosterlast is the response to !last that causes the bot to reply via DM to the user with a table of when users last posted a message to slack rather t
plugins/roster/plugin.go:92
Function
rostertracker
rostertracker is called for every message. It grabs the user and current time and throws it into the db for later use.
plugins/roster/plugin.go:69
Function
seppuku
seppuku instructs the bot to die. you probably don't want this on in production - if you do, a supervisor is highly recommended
plugins/seppuku/plugin.go:47
Function
spam
(evt hal.Evt)
plugins/spam/plugin.go:33
Function
uptime
(evt hal.Evt)
plugins/uptime/plugin.go:42
Function
webroster
(w http.ResponseWriter, r *http.Request)
plugins/roster/plugin.go:109
Function
zombie
zombie disables all plugins but seppuku and stays running. useful for putting a bot deployed under a supervisor out of comission so a local copy can b
plugins/seppuku/plugin.go:58
← previous
501–585 of 585, ranked by callers