Documentation
¶
Index ¶
- func NewLogger(client *etcd.Client, componentName config.ComponentName, ...) (log.Logger, error)
- func NewReidsClient(c *config.ReidsConfig) (*redis.Client, error)
- func NewTestLogger() log.Logger
- func SendHttpRequest(ctx context.Context, method string, url, bodyStr string, ...) (*http.Response, error)
- type EtcdWatcher
- type TaskEtcdPrefix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReidsClient ¶
func NewReidsClient(c *config.ReidsConfig) (*redis.Client, error)
func NewTestLogger ¶
Types ¶
type EtcdWatcher ¶
type EtcdWatcher struct {
// contains filtered or unexported fields
}
func NewEtcdWatcher ¶
func NewEtcdWatcher(client *etcd.Client, watchKey TaskEtcdPrefix, logger log.Logger) *EtcdWatcher
func (*EtcdWatcher) WaitUntilWatchKeyChanged ¶
type TaskEtcdPrefix ¶
type TaskEtcdPrefix string
Click to show internal directories.
Click to hide internal directories.