Documentation ¶
Index ¶
- func DebugTrace(l Logger, f func() error) func()
- func DebugTraceResult(l Logger, f func() (interface{}, error)) func()
- func DebugTraceVerbose(l Logger, s string, f func() (interface{}, error)) func()
- func Exec(bot Bot, dir string, timeout time.Duration, name string, arg ...string) (stdoutStr string, stderrStr string, err error)
- func ExecShow(bot Bot, dir string, name string, arg ...string) (err error)
- func ExecShowOpts(bot Bot, dir string, timeout time.Duration, name string, arg ...string) (err error)
- func ExecShowResults(bot Bot, dir string, name string, arg ...string) (stdout string, stderr string, err error)
- func ExecShowResultsOpts(bot Bot, dir string, timeout time.Duration, name string, arg ...string) (stdout string, stderr string, err error)
- func FunctionTraceVerbose(l Logger, s string, f func() (interface{}, error)) func()
- func GenericTraceVerbose(l Logger, s string, f func() (interface{}, error), okLog LogFn, errLog LogFn) func()
- func GitPull(bot Bot, dir string, remote string, branch string) (err error)
- func GitPullAt(bot Bot, dir string, commit string) (err error)
- func InfoTraceVerbose(l Logger, s string, f func() (interface{}, error)) func()
- func Ingest(bot Bot, msg chat1.MsgSummary) error
- func Listen(bot Bot) error
- func MakeAPI(keybaseBinaryPath string) (*kbchat.API, error)
- func NewTeamChannel(name, channel string) chat1.ChatChannel
- func UpdateBot(bot Bot) (err error)
- type Bot
- type ChatLogger
- type LogFn
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugTrace ¶
func DebugTraceResult ¶
func DebugTraceVerbose ¶
func ExecShowOpts ¶
func ExecShowResults ¶
func ExecShowResultsOpts ¶
func FunctionTraceVerbose ¶
func GenericTraceVerbose ¶
func InfoTraceVerbose ¶
func NewTeamChannel ¶
func NewTeamChannel(name, channel string) chat1.ChatChannel
Types ¶
type ChatLogger ¶
type ChatLogger struct { API *kbchat.API Name string DebugChannel chat1.ChatChannel InfoChannel chat1.ChatChannel }
func (ChatLogger) Alert ¶
func (l ChatLogger) Alert()
func (ChatLogger) AlertWith ¶
func (l ChatLogger) AlertWith(s string)
func (ChatLogger) Debug ¶
func (l ChatLogger) Debug(format string, args ...interface{})
func (ChatLogger) Info ¶
func (l ChatLogger) Info(format string, args ...interface{})
func (ChatLogger) VDebug ¶
func (l ChatLogger) VDebug(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.