Documentation ¶
Index ¶
- func Exec(connector *Connector) (*executors.Executor, error)
- func GetLastConnectorExecutor(c *Connector) *executors.Executor
- func GetRedisConnectorConfKey(g string, c string) string
- func GetRedisConnectorKey(c *Connector) string
- func GetRedisConnectorsKey(c *Connector) string
- func GetRedisExecutorKey(c *Connector) string
- func GetRedisResultKey(c *Connector) string
- func GetRedisrKey(g string, c string) string
- func RedisGetConnectors(group string) ([]string, error)
- func RedisGetLastExecutor(c *Connector) (string, error)
- func RedisRemoveConnector(c *Connector) error
- func RedisSaveConnector(c *Connector) error
- func RedisSaveExecutor(c *Connector, exec *executors.Executor) error
- func RemoveConnector(c *Connector)
- func SaveConnector(c *Connector)
- func SaveExecutor(c *Connector, exec *executors.Executor)
- type Connector
- type ConnectorScheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisConnectorKey ¶
func GetRedisConnectorsKey ¶
func GetRedisExecutorKey ¶
func GetRedisResultKey ¶
func GetRedisrKey ¶
func RedisGetConnectors ¶
func RedisGetLastExecutor ¶
func RedisRemoveConnector ¶
func RedisSaveConnector ¶
func RemoveConnector ¶
func RemoveConnector(c *Connector)
func SaveConnector ¶
func SaveConnector(c *Connector)
func SaveExecutor ¶
Types ¶
type Connector ¶
type Connector struct { Group string `json:"group"` Name string `json:"name"` ContainerConfig *dockerapi.ContainerOptions `json:"config"` Timeout uint `json:"timeout,omitempty"` Refresh uint `json:"refresh,omitempty"` }
func GetConnectors ¶
func NewConnector ¶
func (*Connector) GetContainerName ¶
type ConnectorScheduler ¶
type ConnectorScheduler struct {
// contains filtered or unexported fields
}
var Scheduler ConnectorScheduler
func NewConnectorScheduler ¶
func NewConnectorScheduler() ConnectorScheduler
func (ConnectorScheduler) RemoveJob ¶
func (ct ConnectorScheduler) RemoveJob(conn *Connector)
func (ConnectorScheduler) SetJob ¶
func (ct ConnectorScheduler) SetJob(conn *Connector)
Click to show internal directories.
Click to hide internal directories.