Documentation
¶
Overview ¶
Package util contains utilities for use in all transport implementations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorAlreadyRunning = errors.New("already running") ErrorNotRunning = errors.New("not running") )
Various errors for help with signalling erroneous state
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct { Path string `toml:"path" comment:"path to binary"` Args string `toml:"args" comment:"args to binary"` WorkingDirectory string `toml:"working_directory" comment:"working directory for binary"` Environment []string `toml:"environment" comment:"environment variables to add to the execution"` CopyEnv bool `toml:"copy_env" comment:"copy the environment of the bot when creating "` }
BaseConfig holds data that is common to all Transport implementations
type TransportStatus ¶
type TransportStatus int
TransportStatus is an int alias that indicates the status of a Transport
const ( Unknown TransportStatus = iota Running Stopped )
Various statuses for transports
Click to show internal directories.
Click to hide internal directories.