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
Len
()
plugins/pagerduty/oncall_plugin.go:375
Method
Less
(i, j int)
hal/prefs.go:560
Method
Less
(i, j int)
plugins/pagerduty/oncall_plugin.go:377
Method
ListIdxParamInsts
()
hal/cmd.go:1619
Method
LooksLikeRoomId
(room string)
brokers/console/broker.go:176
Method
LooksLikeRoomId
(room string)
brokers/slack/broker.go:277
Method
LooksLikeRoomId
(room string)
brokers/hipchat/broker.go:148
Method
LooksLikeUserId
(user string)
brokers/console/broker.go:180
Method
LooksLikeUserId
(user string)
brokers/slack/broker.go:288
Method
LooksLikeUserId
(user string)
brokers/hipchat/broker.go:153
Method
MustString
()
hal/cmd.go:1877
Method
MustSubCmd
MustSubCmd returns bool indicating if a subcommand is required.
hal/cmd.go:421
Method
Name
Name returns the key string. Mostly for use in printing errors, etc. Implements NamedParam.
hal/cmd.go:551
Method
Name
Name returns the key string. Mostly for use in printing errors, etc. Implements NamedParam.
hal/cmd.go:557
Method
Name
Name returns the name given to the indexed param. Implements NamedParam.
hal/cmd.go:563
Method
Name
Name returns the key string. Mostly for use in printing errors, etc. Implements NamedParam.
hal/cmd.go:1662
Method
Name
Name returns the key string. Mostly for use in printing errors, etc. Implements NamedParam.
hal/cmd.go:1668
Method
Name
Name returns the name given to the indexed param. Implements NamedParam.
hal/cmd.go:1674
Method
Name
()
brokers/console/broker.go:145
Method
Name
Name returns the name of the broker as set in NewBroker.
brokers/slack/broker.go:95
Method
Name
()
brokers/hipchat/broker.go:94
Function
NewAck
(serviceKey, description string)
plugins/pagerduty/pd_events_v1.go:92
Method
NewBroker
Hipchat is a singleton that returns an initialized and connected Broker. It can be called anywhere in the bot at any time. Host must be "chat.hipchat.
brokers/hipchat/broker.go:53
Method
NewDebugSink
NewLogSink creates a new channel that will receive debug messages. It is allocated and ready to go on return. Do not close it.
hal/logger.go:230
Method
NewLogSink
NewLogSink creates a new channel that will receive log messages. It is allocated and ready to go on return. Do not close it.
hal/logger.go:218
Function
NewResolve
(serviceKey, description string)
plugins/pagerduty/pd_events_v1.go:96
Function
NewTrigger
(serviceKey, description string)
plugins/pagerduty/pd_events_v1.go:88
Method
Param
()
hal/cmd.go:737
Method
Param
()
hal/cmd.go:741
Method
Param
()
hal/cmd.go:745
Method
Parent
()
hal/cmd.go:416
Method
Put
Put adds/updates a node for the given key/attr and creates edges for the attributes where possible.
hal/directory.go:150
Method
Quit
()
hal/router.go:122
Function
REPL
REPL starts a readline-like bot REPL on the console. All plugins that are present and registered are automatically enabled. name should be a non-empty
brokers/console/broker.go:53
Function
Register
Register makes this plugin available to the system.
plugins/pluginmgr/plugin.go:70
Function
Register
()
plugins/uptime/plugin.go:33
Function
Register
()
plugins/pagerduty/plugin.go:36
Function
Register
()
plugins/spam/plugin.go:25
Function
Register
()
plugins/google_calendar/plugin.go:86
Function
Register
()
plugins/inspect/plugin.go:23
Function
Register
()
plugins/mark/plugin.go:49
Function
Register
()
plugins/blabber/plugin.go:59
Function
Register
()
plugins/prefmgr/plugin.go:92
Function
Register
()
plugins/seppuku/plugin.go:28
Function
Register
()
plugins/guys/plugin.go:25
Function
Register
Register makes this plugin available to the system.
plugins/docker/plugin.go:36
Function
Register
()
plugins/archive/plugin.go:68
Function
Register
Register makes this plugin available to the system.
plugins/cross_the_streams/plugin.go:29
Function
Register
()
plugins/roster/plugin.go:46
Method
Register
Register an instance with the bot so that it starts receiving messages.
hal/plugins.go:128
Method
Required
()
hal/cmd.go:729
Function
RmPrefId
RmPrefId removes a preference from the database by its numeric id.
hal/prefs.go:155
Method
RoomIdToName
required by interface
brokers/console/broker.go:262
Method
RoomNameToId
(in string)
brokers/console/broker.go:263
Method
RoomNameToId
RoomNameToId gets the id for a room name using an in-memory cache that falls through to the Slack API
brokers/slack/broker.go:739
Method
RoomNameToId
(in string)
brokers/hipchat/broker.go:254
Method
SaveSettingsToPrefs
SaveSettingsToPrefs saves runtime instance preferences to the prefs table in the database.
hal/plugins.go:205
Method
Send
(evt Evt)
hal/router.go:90
Method
Send
Send posts the event to Pagerduty using the provided token.
plugins/pagerduty/pd_events_v1.go:112
Method
Send
(token string)
plugins/pagerduty/pd_events_v2.go:82
Method
Send
(e hal.Evt)
brokers/console/broker.go:149
Method
SendDM
(e hal.Evt)
brokers/console/broker.go:153
Method
SendDM
(evt hal.Evt)
brokers/slack/broker.go:150
Method
SendDM
TODO: implement this - if Atlassian ever re-publishes the API docs.
brokers/hipchat/broker.go:115
Method
SendTable
(e hal.Evt, hdr []string, rows [][]string)
brokers/console/broker.go:172
Method
SendTable
(evt hal.Evt, hdr []string, rows [][]string)
brokers/slack/broker.go:194
Method
SendTable
(evt hal.Evt, hdr []string, rows [][]string)
brokers/hipchat/broker.go:140
Method
SetBroker
SetBroker returns a copy of the pref with the Broker set to the provided string.
hal/prefs.go:450
Function
SetCounter
(key string, value int)
hal/counter.go:47
Method
SetDefault
(def bool)
hal/cmd.go:513
Method
SetDefault
(def string)
hal/cmd.go:519
Function
SetKV
SetKV inserts a new value in the database with the provided TTL. If the TTL is 0, it defaults to 10 years.
hal/kv.go:94
Method
SetKey
SetKey returns a copy of the pref with the key set to the provided string. Useful for chaining e.g. fooPrefs := p.SetKey("foo").Find().
hal/prefs.go:438
Function
SetPref
SetPref sets a preference and is shorthand for Pref{}.Set().
hal/prefs.go:112
Method
SetTopic
(roomId, topic string)
brokers/console/broker.go:166
Method
SetTopic
(roomId, topic string)
brokers/slack/broker.go:188
Method
SetTopic
TODO: implement
brokers/hipchat/broker.go:136
Method
SetUsage
SetUsage sets the subcommand's usage string.
hal/cmd.go:467
Method
SetUsage
SetUsage sets the usage string for the paremeter. Returns the parameter.
hal/cmd.go:490
Method
SetUsage
SetUsage sets the usage string for the paremeter. Returns the parameter.
hal/cmd.go:496
Method
SetUsage
SetUsage sets the usage string for the paremeter. Returns the parameter.
hal/cmd.go:502
Method
SimpleStdin
SimpleStdin will loop forever reading stdin and publish each line as an event in the console broker. e.g. go cbroker.SimpleStdin()
brokers/console/broker.go:187
Method
SimpleStdout
SimpleStdout prints all replies, etc to the broker on os.Stdout. e.g. go cbroker.SimpleStdout()
brokers/console/broker.go:207
Method
Stop
Stop a periodic function.
hal/periodic.go:160
Method
Stream
(out chan *hal.Evt)
brokers/console/broker.go:220
Method
Stream
Stream is an event loop for Slack events & messages from the RTM API. Events are copied to a hal.Evt and forwarded to the exchange where they can be p
brokers/slack/broker.go:316
Method
Stream
Stream is an event loop for Hipchat events.
brokers/hipchat/broker.go:185
Method
String
()
hal/event.go:272
Method
String
String returns the value as a string.
hal/cmd.go:1688
Method
String
()
hal/plugins.go:316
Method
String
()
hal/plugins.go:320
Method
String
()
hal/prefs.go:584
Method
String
()
hal/prefs.go:600
Method
SubCmd
()
hal/cmd.go:604
Method
SubCmd
()
hal/cmd.go:612
Method
SubCmd
()
hal/cmd.go:620
Method
SubCmdInst
()
hal/cmd.go:689
Method
SubCmdInst
()
hal/cmd.go:697
Method
SubCmdInst
()
hal/cmd.go:705
Method
SubCmdToken
()
hal/cmd.go:1316
← previous
next →
401–500 of 585, ranked by callers