MCPcopy Create free account

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

Functions585 in github.com/Netflix/hal-9001

MethodSubCmds
TODO: remove this?
hal/cmd.go:848
MethodSubscribe
Subscribe joins a room with the given alias. These names are specific to how Hipchat does things.
brokers/hipchat/broker.go:160
MethodSwap
(i, j int)
hal/prefs.go:559
MethodSwap
(i, j int)
plugins/pagerduty/oncall_plugin.go:376
FunctionTestAsciiTable
(t *testing.T)
hal/asciitable_test.go:24
FunctionTestCmd
(t *testing.T)
hal/cmd_test.go:24
FunctionTestEvtBodyAsArgv
(t *testing.T)
hal/event_test.go:24
FunctionTestLogger
(t *testing.T)
hal/logger_test.go:23
FunctionTestSecretsBasic
(t *testing.T)
hal/secrets_test.go:25
FunctionTestTtlCache
(t *testing.T)
hal/ttlcache_test.go:32
FunctionTestUtf8Table
(t *testing.T)
hal/utf8table_test.go:24
FunctionTesttext2image
(t *testing.T)
hal/text2image_test.go:25
MethodTime
()
hal/cmd.go:1858
MethodTime
()
hal/cmd.go:1862
MethodToken
()
hal/cmd.go:775
MethodTtl
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
MethodUnregister
Unregister removes an instance from the list of plugin instances.
hal/plugins.go:158
MethodUsage
Usage returns the auto-generated usage string.
hal/cmd.go:426
MethodUsage
Usage returns the auto-generated usage string for the Command Instance.
hal/cmd.go:473
MethodUsage
()
hal/cmd.go:477
MethodUsage
()
hal/cmd.go:481
MethodUsage
()
hal/cmd.go:485
MethodUserIdToName
(in string)
brokers/console/broker.go:264
MethodUserIdToName
(in string)
brokers/hipchat/broker.go:264
MethodUserNameToId
(in string)
brokers/console/broker.go:265
MethodUserNameToId
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
MethodUserNameToId
(in string)
brokers/hipchat/broker.go:265
MethodValue
()
hal/cmd.go:1648
MethodValue
()
hal/cmd.go:1652
MethodValue
()
hal/cmd.go:1656
MethodValue
Value filters the preference list by key, returning a new Prefs
hal/prefs.go:524
MethodWipeDB
()
hal/secrets.go:263
FunctionarchiveReaction
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
FunctionarchiveRecorder
ArchiveRecorder inserts every message received into the database for use by other parts of the system.
plugins/archive/plugin.go:92
Functionblab
!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
FunctionbwCounter
(evt hal.Evt)
plugins/blabber/plugin.go:77
FunctioncrossStreams
crossStreams looks at events it recieves and repeats them to a different broker.
plugins/cross_the_streams/plugin.go:45
FunctiondefBoolParam
DefBool returns the value as a bool. See DefString for the rules.
hal/cmd.go:1966
FunctiondefFloatParam
DefFloat returns the value as a float. See DefString for the rules.
hal/cmd.go:1947
Functiondocker
(evt hal.Evt)
plugins/docker/plugin.go:46
MethoderrParam
errParam is used to get an interface{} handle to return in errors. See: RequiredParamNotFound
hal/cmd.go:751
MethoderrParam
errParam is used to get an interface{} handle to return in errors.
hal/cmd.go:756
MethoderrParam
errParam is used to get an interface{} handle to return in errors.
hal/cmd.go:761
Functiongetid
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
Functionguys
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
FunctionhandleEvt
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
FunctionhttpGetArchive
httpGetArchive retreives the 50 latest items from the event archive.
plugins/archive/plugin.go:151
FunctionhttpGetMarks
(w http.ResponseWriter, r *http.Request)
plugins/mark/plugin.go:102
FunctioningestPagerdutyAccount
()
plugins/pagerduty/poller.go:43
Functioninit
()
hal/periodic.go:47
Functioninit
()
plugins/uptime/plugin.go:29
Functioninit
()
plugins/pagerduty/helpers.go:31
Functioninit
()
plugins/pagerduty/oncall_plugin.go:44
Functioninit
()
plugins/google_calendar/plugin.go:81
Functioninit
()
plugins/prefmgr/plugin.go:41
Functioninit
()
brokers/slack/broker.go:63
FunctioninitData
initData primes the cache and starts the background goroutine
plugins/google_calendar/plugin.go:97
Methodinitialize
initialize internal fields, called automatically using pf.init.Do
hal/periodic.go:67
Functionleave
(evt hal.Evt)
plugins/inspect/plugin.go:61
FunctionlooksLikeBool
looksLikeBool checks to see if the provided value contains "true" or "false" in any case combination.
hal/cmd.go:1116
Functionmain
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
Functionmain
()
example/demos/imgtable.go:30
Functionmain
()
example/demos/colorparser.go:27
Functionmain
()
example/demos/utf8table.go:26
Functionmain
a simple bot that only implements generic plugins on a repl
example/repl/main.go:31
Functionmain
()
example/everything/main.go:41
Functionmain
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
Functionmark
(evt hal.Evt)
plugins/mark/plugin.go:62
MethodnewInst
(cmdinst *CmdInst, subcmdinst *SubCmdInst, isdef bool, value bool)
hal/cmd.go:639
MethodnewInst
(cmdinst *CmdInst, subcmdinst *SubCmdInst, isdef bool, value string)
hal/cmd.go:650
Functiononcall
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
FunctiononcallInit
(i *hal.Instance)
plugins/pagerduty/oncall_plugin.go:271
Functionpage
(msg hal.Evt)
plugins/pagerduty/page_plugin.go:44
Functionpluginmgr
(evt hal.Evt)
plugins/pluginmgr/plugin.go:120
FunctionpollerHandler
TODO: add a timestamp-based cleanup for old edges/attrs/etc.
plugins/pagerduty/poller.go:28
FunctionpollerInit
(inst *hal.Instance)
plugins/pagerduty/poller.go:32
FunctionprefHandler
(w http.ResponseWriter, r *http.Request)
plugins/prefmgr/http.go:26
Functionprefmgr
prefmgr is called when someone executes !pref in the chat system
plugins/prefmgr/plugin.go:104
Functionrosterlast
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
Functionrostertracker
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
Functionseppuku
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
Functionspam
(evt hal.Evt)
plugins/spam/plugin.go:33
Functionuptime
(evt hal.Evt)
plugins/uptime/plugin.go:42
Functionwebroster
(w http.ResponseWriter, r *http.Request)
plugins/roster/plugin.go:109
Functionzombie
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
← previous501–585 of 585, ranked by callers